 // list
 assert(list([1, 2, 3]) == [1, 2, 3])
 assert(list([1, 2, 3]).count(1) == 1)
+
+// list (truthness)
+assert([1, 2, 3])
+assert([1, 2])
+assert([1])
 
 // list.count
 assert([1, 2, 2, 3, 3, 3].count(1) == 1)


let performPythonIncompatibleTests = true
if performPythonIncompatibleTests {
    // dict
    assert(!dict<str, str>())
    assert(["foo": "bar"])

assert(cmp(1, 0) == 1)
// assert(cmp([1, 2, 3, 100], [2, 3, 4, 5]) == -1) – assertion fails

// double (truthness)
assert(0.00000001)
assert(1.0)
assert(!bool(0.0))

// double.is_integer/isInteger
assert(!0.000000000001.is_integer())
assert(!1.1.is_integer())
