Skip to content

Commit

Permalink
try adding tests; testing lib not working /cc KurtRudolph/cuelang-tes…
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Apr 8, 2022
1 parent f0f9965 commit e0ef835
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "cue.mod/pkg/github.com/ipcf/testing"]
path = cue.mod/pkg/github.com/ipcf/testing
url = https://github.com/tmm1/cuelang-testing
1 change: 1 addition & 0 deletions cue.mod/pkg/github.com/ipcf/testing
Submodule testing added at 773920
18 changes: 18 additions & 0 deletions freefile/test.cue
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package test

import (
"github.com/tmm1/taxes/freefile"
"github.com/ipcf/testing"
)

testing.T & {
test: "f1040": {
[testing.NumDot]: subject: freefile.f1040.#schema
"0": assert: ok: {
txtWagesSalariesTips: 0
}
"1": assert: notOk: {
txtWagesSalariesTips: -400
}
}
}

0 comments on commit e0ef835

Please sign in to comment.