Skip to content

Commit 83db372

Browse files
committed
add binding to todo()
1 parent 4f83054 commit 83db372

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

examples/run.res

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ let bench =
1616
b := a.contents - b.contents
1717
a := b.contents - a.contents
1818
})
19+
->Bench.todo("unimplemented bench")
1920

2021
await bench.run(.)
22+
2123
bench.table(.)->Console.table
24+
bench.todos->Array.map(({name}) => {name})->Console.table

src/Bench.res

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ type t = {
4343
reset: (. unit) => unit,
4444
table: (. unit) => Js.Dict.t<string>,
4545
tasks: array<Task.t>,
46+
todos: array<Task.t>,
4647
results: array<option<Task.result>>,
4748
}
4849

@@ -73,6 +74,9 @@ external add: (t, string, unit => unit) => t = "add"
7374
@send
7475
external addAsync: (t, string, unit => Js.Promise2.t<unit>) => t = "add"
7576

77+
@send
78+
external todo: (t, string) => t = "todo"
79+
7680
@send
7781
external remove: (t, string) => t = "remove"
7882

0 commit comments

Comments
 (0)