Skip to content

Commit

Permalink
docs: fix the sample code on README.md
Browse files Browse the repository at this point in the history
We no longer use `XCTest`, but the sample code on README.md still uses `XCAssertEqual`s.
  • Loading branch information
kkebo committed Apr 14, 2024
1 parent 96c6f59 commit 4ef918d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ struct Foo: ~Copyable {

var foo = Foo(a: 3, b: .init(4))

XCTAssertEqual(foo.a, 3)
XCTAssertEqual(foo.b.value, 4)
assert(foo.a == 3)
assert(foo.b.value == 4)

foo.a = 10
foo.b.value = 5

XCTAssertEqual(foo.a, 10)
XCTAssertEqual(foo.b.value, 5)
assert(foo.a == 10)
assert(foo.b.value == 5)
```

0 comments on commit 4ef918d

Please sign in to comment.