Commit Graph

17 Commits

Author SHA1 Message Date
Andrey Breslav 66359894ee Additional tests for new behavior of getOrElse() and getOrPut() 2012-09-27 14:47:01 +04:00
James Strachan 81d83cd4f0 added component1() / component2() methods to Map.Entry along with a test case so that maps can be iterated over via: for ((k, v) in map) 2012-09-14 11:18:35 +01:00
Andrey Breslav 89fd0526cf TupleN classes and their usages replaced by Pair and Triple
(KT-2358 Drop tuples)

 #KT-2358 In Progress
2012-09-07 21:26:42 +04:00
James Strachan ecbd4daefb avoid unnecessary verbose type parameters now the type inferencer is better 2012-08-17 09:44:52 +01:00
James Strachan 137eee3f45 moved the Map<String,String>.toProperties() helper function into the standard library and added a test case 2012-08-02 11:57:12 +01:00
James Strachan 541f3d4e78 got more map code compiling to JS and running as unit tests 2012-07-03 07:43:15 +01:00
James Strachan 0007be9377 #KT-537 adds A.to(B) helper method to make easy creation of map literals: hashMap("a" to 3, "b" to 6) etc 2012-04-16 20:37:13 +01:00
James Strachan cabaeab972 added toLinkedMap() and toSortedMap helper functions and test cases 2012-04-16 19:30:13 +01:00
James Strachan 378c95baa3 added a linkedMap() function to help create LinkedHashMap objects to maintain map insertion order 2012-04-16 17:52:02 +01:00
James Strachan 0325e68a86 #KT-1795 Fixed - added hashMap() and sortedMap() helper functions for creating maps more easily using tuples 2012-04-16 12:00:47 +01:00
James Strachan 8ffca6e52f added test case for KT-1773 -(commented out :) 2012-04-13 09:34:06 +01:00
James Strachan 4c09af0a77 added test case for KT-1773 2012-04-13 09:33:29 +01:00
James Strachan 33e0e2d991 #KT-1775 Fixed 2012-04-12 18:13:43 +01:00
James Strachan 57a5e81db8 re-enabled the Map.Entry key/value properties (not quite sure why they were disabled, tests all seem to work?) and tidied up the sample code for the kdocs 2012-04-12 14:56:06 +01:00
James Strachan f9b00ad3f9 #KT-1772 Fixed 2012-04-12 14:29:44 +01:00
James Strachan 133afa8327 link more documentation to test cases and filled out the test cases a little 2012-03-27 12:26:20 +01:00
James Strachan 7ef65c0099 moved the stdlib tests into the same directory as the stdlib, so it works a bit better with maven support in IDEA 2012-03-14 16:14:14 +00:00