Get rid of my name from TODOs. Anyone can do them.
This commit is contained in:
@@ -2,6 +2,6 @@ io.write([].count) // expect: 0
|
||||
io.write([1].count) // expect: 1
|
||||
io.write([1, 2, 3, 4].count) // expect: 4
|
||||
|
||||
// TODO(bob): Literal syntax, including newline handling.
|
||||
// TODO(bob): Unterminated list literal.
|
||||
// TODO(bob): Subscript operator.
|
||||
// TODO: Literal syntax, including newline handling.
|
||||
// TODO: Unterminated list literal.
|
||||
// TODO: Subscript operator.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// TODO(bob): What happens if the index isn't an integer?
|
||||
// TODO(bob): Out of bounds.
|
||||
// TODO: What happens if the index isn't an integer?
|
||||
// TODO: Out of bounds.
|
||||
|
||||
// Add to empty list.
|
||||
var a = []
|
||||
|
||||
@@ -24,7 +24,7 @@ f.removeAt(-1)
|
||||
io.write(f) // expect: [1, 2]
|
||||
|
||||
// Out of bounds.
|
||||
// TODO(bob): Signal error in better way.
|
||||
// TODO: Signal error in better way.
|
||||
io.write([1, 2, 3].removeAt(3)) // expect: null
|
||||
io.write([1, 2, 3].removeAt(-4)) // expect: null
|
||||
|
||||
|
||||
@@ -12,14 +12,14 @@ io.write(list[-2]) // expect: c
|
||||
io.write(list[-1]) // expect: d
|
||||
|
||||
// Handle out of bounds.
|
||||
// TODO(bob): Should halt the fiber or raise an error somehow.
|
||||
// TODO: Should halt the fiber or raise an error somehow.
|
||||
io.write(list[4]) // expect: null
|
||||
io.write(list[-5]) // expect: null
|
||||
|
||||
// Handle wrong argument type.
|
||||
// TODO(bob): Should halt the fiber or raise an error somehow.
|
||||
// TODO: Should halt the fiber or raise an error somehow.
|
||||
io.write(list[true]) // expect: null
|
||||
|
||||
// Handle non-integer index.
|
||||
// TODO(bob): Should halt the fiber or raise an error somehow.
|
||||
// TODO: Should halt the fiber or raise an error somehow.
|
||||
io.write(list[1.5]) // expect: null
|
||||
|
||||
Reference in New Issue
Block a user