From 4ef918d93f46ef24f5c635f0405f0746869d825c Mon Sep 17 00:00:00 2001 From: Kenta Kubo <601636+kkebo@users.noreply.github.com> Date: Sat, 6 Apr 2024 21:42:41 +0900 Subject: [PATCH] docs: fix the sample code on README.md We no longer use `XCTest`, but the sample code on README.md still uses `XCAssertEqual`s. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index de4d4a0..ec6471a 100644 --- a/README.md +++ b/README.md @@ -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) ```