library_test.go 456 B

1234567891011121314151617181920212223
  1. package test
  2. import (
  3. "testing"
  4. "path/filepath"
  5. )
  6. const library = "library"
  7. func TestSeqCons(t *testing.T) {
  8. var dir_path = getTestDirPath(t, library)
  9. var mod_path = filepath.Join(dir_path, "container", "seq_cons.km")
  10. expectStdIO(t, mod_path, "", "0\n1\n2\n")
  11. }
  12. func TestSeqOps(t *testing.T) {
  13. var dir_path = getTestDirPath(t, library)
  14. var mod_path = filepath.Join(dir_path, "container", "seq_ops.km")
  15. expectStdIO(t, mod_path, "", "100\n")
  16. }