added a bunch more JS test cases from standard library test cases

This commit is contained in:
James Strachan
2012-07-03 22:20:00 +01:00
parent 038f0af68f
commit 8f94f5e43f
6 changed files with 23 additions and 7 deletions
+8
View File
@@ -31,6 +31,14 @@ public inline fun arrayList<T>(vararg values: T) : ArrayList<T> {
return list
}
/** Returns a new HashSet with a variable number of initial elements */
public inline fun hashSet<T>(vararg values: T) : HashSet<T> {
val list = HashSet<T>()
for (value in values) {
list.add(value)
}
return list
}
/**
* Returns a new List containing the results of applying the given *transform* function to each [[Map.Entry]] in this [[Map]]
@@ -27,7 +27,11 @@ public class StdLibTestToJSTest extends StdLibTestSupport {
"dom/DomTest.kt",
"js/MapTest.kt",
"js/JsDomTest.kt",
//"iterators/FunctionIteratorTest.kt",
//"iterators/IteratorsTest.kt",
"GetOrElseTest.kt",
"ListTest.kt",
"SetTest.kt",
"StringTest.kt");
}
}
@@ -115,6 +115,8 @@ public abstract class Config {
"/kotlin/JLangIterables.kt",
"/kotlin/JLangIterablesLazy.kt",
"/kotlin/JLangIterablesSpecial.kt",
// TODO "/generated/JUtilIteratorsFromJLangIterables.kt",
// TODO "/generated/JUtilIterablesFromJUtilCollections.kt",
"/kotlin/support/AbstractIterator.kt",
"/kotlin/Standard.kt",
"/kotlin/Strings.kt",