added a bunch more JS test cases from standard library test cases
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user