update examples so they can compile again, and make them visible to dub
This commit is contained in:
parent
b44f96bd9f
commit
4680e1b5b2
15 changed files with 57 additions and 54 deletions
|
@ -5,6 +5,6 @@
|
|||
"mainSourceFile": "yaml_gen.d",
|
||||
"dependencies":
|
||||
{
|
||||
"dyaml": { "version" : "~>0.5.0" },
|
||||
},
|
||||
"dyaml": { "version" : "*" }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ import std.math;
|
|||
import std.random;
|
||||
import std.stdio;
|
||||
import std.string;
|
||||
import dyaml.all;
|
||||
import dyaml;
|
||||
|
||||
|
||||
Node config;
|
||||
|
@ -220,7 +220,7 @@ Node pairs(bool root, bool complex, Node range, string tag)
|
|||
{
|
||||
auto key = generateNode(randomType(typesScalarKey ~ (complex ? typesCollection : [])));
|
||||
// Maps can't contain duplicate keys
|
||||
while(tag.endsWith("map") && keys[0 .. i].canFind(key))
|
||||
while(tag.endsWith("map") && keys[0 .. i].canFind(key))
|
||||
{
|
||||
key = generateNode(randomType(typesScalarKey ~ (complex ? typesCollection : [])));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue