Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
added unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
andralex committed Jan 18, 2012
1 parent 3b6ba08 commit 3c71040
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/object_.d
Expand Up @@ -2180,6 +2180,19 @@ public:
}
}

unittest
{
int[int] a;
foreach (i; a.byKey)
{
assert(false);
}
foreach (i; a.byValue)
{
assert(false);
}
}

unittest
{
auto a = [ 1:"one", 2:"two", 3:"three" ];
Expand Down

0 comments on commit 3c71040

Please sign in to comment.