Skip to content

Commit 23d586c

Browse files
committed
Merge pull request #2906 from frootloops/alloc-rounding
Refactoring alloc_rounding tests
2 parents f92e90a + c7d5da2 commit 23d586c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

test/1_stdlib/alloc_rounding.swift renamed to test/1_stdlib/AllocRounding.swift

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
// RUN: %target-run-simple-swift | FileCheck %s
1+
// RUN: %target-run-simple-swift
22
// REQUIRES: executable_test
33

4+
import StdlibUnittest
5+
46
struct Buffer32 {
57
var x0: UInt64 = 0
68
var x1: UInt64 = 0
@@ -22,5 +24,8 @@ func foo() -> UInt64 {
2224
}
2325
}
2426

25-
// CHECK: 1
26-
print(foo())
27+
TestSuite("AllocRounding").test("Basic") {
28+
expectEqual(1, foo())
29+
}
30+
31+
runAllTests()

0 commit comments

Comments
 (0)