Skip to content

Commit

Permalink
nightly update
Browse files Browse the repository at this point in the history
  • Loading branch information
thatstoasty committed Apr 24, 2024
1 parent a15394d commit 10a767f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion external/mist/color.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ fn convert_base16_to_base10(value: String) -> Int:
var sum: Int = 0
for i in range(length - 1, -1, -1):
var exponent = length - 1 - i
sum += mapping.find(value[i]).value() * (16**exponent)
sum += mapping.find(value[i]).value()[] * (16**exponent)

return sum

Expand Down
8 changes: 1 addition & 7 deletions tests/wrapper.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,7 @@ struct MojoTest:
except e:
print(e)

fn assert_equal(self, left: Int, right: Int):
try:
testing.assert_equal(left, right)
except e:
print(e)

fn assert_equal(self, left: String, right: String):
fn assert_equal[T: testing.Testable](self, left: T, right: T):
try:
testing.assert_equal(left, right)
except e:
Expand Down

0 comments on commit 10a767f

Please sign in to comment.