Skip to content

Commit

Permalink
test: improve coverage for ref/ref.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 `ref/ref.mbt`: 71.4% -> 85.7%
```
  • Loading branch information
rami3l committed Jan 23, 2025
1 parent 64c2ae8 commit 290402d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ref/ref_test.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,8 @@ test "update with identity function" {
@ref.update(a, fn(x) { x })
assert_eq!(a.val, 1)
}

test "Ref::new with string" {
let r = Ref::new("hello")
inspect!(r, content="{val: \"hello\"}")
}

0 comments on commit 290402d

Please sign in to comment.