Skip to content

Commit

Permalink
Fixed up tests includes so they can be run from other projects.
Browse files Browse the repository at this point in the history
  • Loading branch information
oubiwann committed Mar 6, 2024
1 parent f43bca3 commit 4c58698
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion test/ltest-basic-tests.lfe
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
(check-failed-assert 2)
(check-wrong-assert-exception 2))))

(include-lib "include/ltest-macros.lfe")
(include-lib "ltest/include/ltest-macros.lfe")

(deftest is
(is 'true)
Expand Down
2 changes: 1 addition & 1 deletion test/ltest-cancelled-tests.lfe
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
(defmodule ltest-cancelled-tests
(behaviour ltest-unit))

(include-lib "include/ltest-macros.lfe")
(include-lib "ltest/include/ltest-macros.lfe")

(defun set-up () 'ok)

Expand Down
2 changes: 1 addition & 1 deletion test/ltest-fixture-tests.lfe
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(defmodule ltest-fixture-tests
(behaviour ltest-unit))

(include-lib "include/ltest-macros.lfe")
(include-lib "ltest/include/ltest-macros.lfe")

(defun set-up () 'ok)

Expand Down
2 changes: 1 addition & 1 deletion test/ltest-fixturecase-tests.lfe
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(defmodule ltest-fixturecase-tests
(behaviour ltest-unit))

(include-lib "include/ltest-macros.lfe")
(include-lib "ltest/include/ltest-macros.lfe")

(defun set-up () 'ok)

Expand Down
4 changes: 2 additions & 2 deletions test/ltest-formatter-tests.lfe
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(defmodule ltest-formatter-tests
(behaviour ltest-unit))

(include-lib "include/ltest-macros.lfe")
(include-lib "include/ltest-records.lfe")
(include-lib "ltest/include/ltest-macros.lfe")
(include-lib "ltest/include/ltest-records.lfe")

(defun test-file ()
"_build/test/lib/ltest/ebin/ltest-util.beam")
Expand Down
2 changes: 1 addition & 1 deletion test/ltest-generated-tests.lfe
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(defmodule ltest-generated-tests
(behaviour ltest-unit))

(include-lib "include/ltest-macros.lfe")
(include-lib "ltest/include/ltest-macros.lfe")

(deftestgen is* (is* 'true))

Expand Down
2 changes: 1 addition & 1 deletion test/ltest-integration-tests.lfe
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(behaviour ltest-integration)
(export all))

(include-lib "include/ltest-macros.lfe")
(include-lib "ltest/include/ltest-macros.lfe")

(deftest testing-behaviour-use-true
(is 'true))
Expand Down
2 changes: 1 addition & 1 deletion test/ltest-named-tests.lfe
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
(from ltest
(check-failed-assert 2))))

(include-lib "include/ltest-macros.lfe")
(include-lib "ltest/include/ltest-macros.lfe")

(deftest named-is
(tuple '"Testing the 'is' assertion macro."
Expand Down
2 changes: 1 addition & 1 deletion test/ltest-skipped-tests.lfe
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(behaviour ltest-unit)
(export all))

(include-lib "include/ltest-macros.lfe")
(include-lib "ltest/include/ltest-macros.lfe")

(deftestskip bogus-test-will-be-skipped
(is 'true)
Expand Down
2 changes: 1 addition & 1 deletion test/ltest-system-tests.lfe
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(behaviour ltest-system)
(export all))

(include-lib "include/ltest-macros.lfe")
(include-lib "ltest/include/ltest-macros.lfe")

(deftest testing-behaviour-use-true
(is 'true))
Expand Down
2 changes: 1 addition & 1 deletion test/ltest-testset-tests.lfe
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
(from ltest
(check-failed-assert 2))))

(include-lib "include/ltest-macros.lfe")
(include-lib "ltest/include/ltest-macros.lfe")

(deftest testset-with-one `[,(is 'true)])

Expand Down
2 changes: 1 addition & 1 deletion test/ltest-util-tests.lfe
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(defmodule ltest-util-tests
(behaviour ltest-unit))

(include-lib "include/ltest-macros.lfe")
(include-lib "ltest/include/ltest-macros.lfe")

(defun test-file ()
"_build/test/lib/ltest/ebin/ltest-util.beam")
Expand Down

0 comments on commit 4c58698

Please sign in to comment.