File tree 4 files changed +30
-2
lines changed
4 files changed +30
-2
lines changed File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ // usr/bin/true; exec om cc run "$0" "$@"
2
+ /* @omlish-cdeps [
3
+ {
4
+ "git": {
5
+ "url": "https://github.com/boost-ext/ut",
6
+ "rev": "f83e15c7f1edb49b4ec20f866eec06940d18a47d",
7
+ "subtrees": [
8
+ "include"
9
+ ]
10
+ },
11
+ "include": [
12
+ "include"
13
+ ]
14
+ }
15
+ ] */
16
+ #include < boost/ut.hpp> // import boost.ut;
17
+
18
+ constexpr auto sum (auto ... values) { return (values + ...); }
19
+
20
+ int main () {
21
+ using namespace boost ::ut;
22
+
23
+ " sum" _test = [] {
24
+ expect (sum (0 ) == 0_i);
25
+ expect (sum (1 , 2 ) == 3_i);
26
+ expect (sum (1 , 2 ) > 0_i and 41_i == sum (40 , 2 ));
27
+ };
28
+ }
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ def _compile_and_run(
45
45
def test_hi (tmpdir ):
46
46
out = _compile_and_run (
47
47
str (tmpdir ),
48
- os .path .join (os .path .dirname (__file__ ), 'hi.cc' ),
48
+ os .path .join (os .path .dirname (__file__ ), 'src/ hi.cc' ),
49
49
'foo bar' ,
50
50
'baz' ,
51
51
)
@@ -62,7 +62,7 @@ def test_hi(tmpdir):
62
62
def test_json (tmpdir ):
63
63
out = _compile_and_run (
64
64
str (tmpdir ),
65
- os .path .join (os .path .dirname (__file__ ), 'json.cc' ),
65
+ os .path .join (os .path .dirname (__file__ ), 'src/ json.cc' ),
66
66
)
67
67
68
68
assert out .decode ().strip () == (
You can’t perform that action at this time.
0 commit comments