ilmanzo / dlangkoans Goto Github PK
View Code? Open in Web Editor NEWD Programming Language Koans. Inspired from RubyKoans, CppKoans, GoKoans; an educational unit test suite for the D Programming Language
D Programming Language Koans. Inspired from RubyKoans, CppKoans, GoKoans; an educational unit test suite for the D Programming Language
I don't see how to go about it.
I would've thought you'd test with - dub exercise1 - for example.
this koan is strange for me? clearly a string is mutated there?
e.g. 03_about_chars.d:13: if i put in 'b' i get the warning when running the code:
dunit.assertion.AssertException@source/03_about_chars.d(13): expected: <a> but was: <b>
I think it should be the other way around.
The .dub
and obj
folders are not meant to be committed, and should probably be added to .gitignore
.
../../.dub/packages/undead/1.1.5/undead/src/undead/xml.d(594,49): Deprecation: scope variable `o` assigned to non-scope parameter `o` calling `toType`
../../.dub/packages/undead/1.1.5/undead/src/undead/xml.d(614,49): Deprecation: scope variable `o` assigned to non-scope parameter `o` calling `toType`
../../.dub/packages/undead/1.1.5/undead/src/undead/xml.d(845,48): Deprecation: scope variable `o` assigned to non-scope parameter `o` calling `toType`
../../.dub/packages/undead/1.1.5/undead/src/undead/xml.d(869,48): Deprecation: scope variable `o` assigned to non-scope parameter `o` calling `toType`
../../.dub/packages/undead/1.1.5/undead/src/undead/xml.d(1280,42): Deprecation: scope variable `o` assigned to non-scope parameter `o` calling `toType`
../../.dub/packages/undead/1.1.5/undead/src/undead/xml.d(1299,42): Deprecation: scope variable `o` assigned to non-scope parameter `o` calling `toType`
../../.dub/packages/undead/1.1.5/undead/src/undead/xml.d(1368,42): Deprecation: scope variable `o` assigned to non-scope parameter `o` calling `toType`
../../.dub/packages/undead/1.1.5/undead/src/undead/xml.d(1387,42): Deprecation: scope variable `o` assigned to non-scope parameter `o` calling `toType`
../../.dub/packages/undead/1.1.5/undead/src/undead/xml.d(1445,42): Deprecation: scope variable `o` assigned to non-scope parameter `o` calling `toType`
../../.dub/packages/undead/1.1.5/undead/src/undead/xml.d(1464,42): Deprecation: scope variable `o` assigned to non-scope parameter `o` calling `toType`
../../.dub/packages/undead/1.1.5/undead/src/undead/xml.d(1528,42): Deprecation: scope variable `o` assigned to non-scope parameter `o` calling `toType`
../../.dub/packages/undead/1.1.5/undead/src/undead/xml.d(1547,42): Deprecation: scope variable `o` assigned to non-scope parameter `o` calling `toType`
../../.dub/packages/undead/1.1.5/undead/src/undead/xml.d(1608,42): Deprecation: scope variable `o` assigned to non-scope parameter `o` calling `toType`
../../.dub/packages/undead/1.1.5/undead/src/undead/xml.d(1627,42): Deprecation: scope variable `o` assigned to non-scope parameter `o` calling `toType`
Building d-unit 0.10.1: building configuration [library]
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(242,1): Deprecation: usage of the `body` keyword is deprecated. Use `do` instead.
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(566,26): Deprecation: struct `core.time.TickDuration` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(566,26): Deprecation: struct `core.time.TickDuration` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(697,26): Deprecation: struct `core.time.TickDuration` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(697,26): Deprecation: struct `core.time.TickDuration` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(767,26): Deprecation: struct `core.time.TickDuration` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(767,26): Deprecation: struct `core.time.TickDuration` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/assertion.d(672,23): Deprecation: struct `core.time.TickDuration` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/assertion.d(672,50): Deprecation: function `core.time.TickDuration.currSystemTick` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/assertion.d(672,11): Deprecation: struct `core.time.TickDuration` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/assertion.d(676,44): Deprecation: struct `core.time.TickDuration` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/assertion.d(676,71): Deprecation: function `core.time.TickDuration.currSystemTick` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/assertion.d(676,44): Deprecation: template `core.time.TickDuration.opBinary(string op)(TickDuration rhs) if (op == "+" || op == "-")` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/assertion.d(676,29): Deprecation: template `core.time.TickDuration.opCast(T)() if (is(immutable(T) == immutable(Duration)))` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(576,26): Deprecation: struct `core.time.TickDuration` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(576,53): Deprecation: function `core.time.TickDuration.currSystemTick` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(606,30): Deprecation: struct `core.time.TickDuration` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(606,57): Deprecation: function `core.time.TickDuration.currSystemTick` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(606,30): Deprecation: template `core.time.TickDuration.opBinary(string op)(TickDuration rhs) if (op == "+" || op == "-")` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(606,83): Deprecation: function `core.time.TickDuration.usecs` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(709,26): Deprecation: struct `core.time.TickDuration` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(709,53): Deprecation: function `core.time.TickDuration.currSystemTick` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(740,26): Deprecation: struct `core.time.TickDuration` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(740,53): Deprecation: function `core.time.TickDuration.currSystemTick` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(740,26): Deprecation: template `core.time.TickDuration.opBinary(string op)(TickDuration rhs) if (op == "+" || op == "-")` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(740,79): Deprecation: function `core.time.TickDuration.msecs` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(789,26): Deprecation: struct `core.time.TickDuration` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(789,53): Deprecation: function `core.time.TickDuration.currSystemTick` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(832,26): Deprecation: struct `core.time.TickDuration` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(832,53): Deprecation: function `core.time.TickDuration.currSystemTick` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(832,26): Deprecation: template `core.time.TickDuration.opBinary(string op)(TickDuration rhs) if (op == "+" || op == "-")` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(832,79): Deprecation: function `core.time.TickDuration.msecs` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
Building dlang_koans 0.0.17+commit.4.ged1bf1d: building configuration [application]
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(242,1): Deprecation: usage of the `body` keyword is deprecated. Use `do` instead.
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(566,26): Deprecation: struct `core.time.TickDuration` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(566,26): Deprecation: struct `core.time.TickDuration` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(697,26): Deprecation: struct `core.time.TickDuration` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(697,26): Deprecation: struct `core.time.TickDuration` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(767,26): Deprecation: struct `core.time.TickDuration` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
../../.dub/packages/d-unit/0.10.1/d-unit/src/dunit/framework.d(767,26): Deprecation: struct `core.time.TickDuration` is deprecated - TickDuration has been deprecated, please use Duration or MonoTime instead
Float values are initialized to float.nan
Therefore the assertion for equality on lines 29 and 34 are invalid, because float.nan != float.nan.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.