Skip to content

Commit

Permalink
test: improve coverage for builtin/option.mbt
Browse files Browse the repository at this point in the history
**Disclaimer:** This PR was generated by an LLM agent as part of an experiment.

## Summary

```
coverage of `builtin/option.mbt`: 70.0% -> 100%
```
  • Loading branch information
rami3l authored and bobzhang committed Dec 30, 2024
1 parent 779b854 commit bcb83ee
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions builtin/option_test.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,13 @@ test {
assert_not_eq!(Option::None, Option::Some(1))
assert_not_eq!(Option::Some(1), Option::None)
}

test "to_string for Option None" {
let x : Int? = None
inspect!(x.to_string(), content="None")
}

test "to_string for Option Some" {
let x : Int? = Some(42)
inspect!(x.to_string(), content="Some(42)")
}

0 comments on commit bcb83ee

Please sign in to comment.