Skip to content

Commit 94b87e6

Browse files
committed
✅ Fix and test usage code
1 parent 76439d2 commit 94b87e6

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ permissions:
66
contents: read
77

88
jobs:
9-
fmt:
9+
ci:
1010
runs-on: ${{ matrix.operating-system }}
1111
strategy:
1212
matrix:
@@ -26,3 +26,6 @@ jobs:
2626
2727
- name: Check fmt
2828
run: v fmt -verify .
29+
30+
- name: Check fmt
31+
run: v test .

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ Module {
3333
## Usage
3434

3535
```v
36-
import vest
36+
import vest { expect }
3737
3838
fn hello(who string) string {
3939
return 'Hello ${who}!'
4040
}
4141
4242
fn test_hello() {
43-
expect(hello('Vest')).to_equal('Hello Vest!')
43+
expect(hello('Vest')).equal('Hello Vest!')
4444
}
4545
```

0 commit comments

Comments
 (0)