Skip to content

Commit

Permalink
update test cases to suggest change
Browse files Browse the repository at this point in the history
  • Loading branch information
Newt6611 committed Sep 13, 2024
1 parent 7a735e6 commit ddec449
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions lib/aiken/primitive/bytearray.ak
Original file line number Diff line number Diff line change
Expand Up @@ -638,28 +638,13 @@ pub fn starts_with(self: ByteArray, prefix: ByteArray) -> Bool {
}

test starts_with_1() {
let x = "Hello, World!"
starts_with(x, "Hello")
}

test starts_with_2() {
let x = "Hello, World!"
starts_with(x, "World") == False
}

test starts_with_3() {
let x = ""
starts_with(x, "World") == False
}

test starts_with_4() {
starts_with("", "")
}

test starts_with_5() {
test starts_with_2() {
starts_with("Hello, World!", "Hello, World!")
}

test starts_with_6() {
!starts_with("Hello, World!", "Hello")
test starts_with_3() {
!starts_with("Hello, World!", "hello")
}

0 comments on commit ddec449

Please sign in to comment.