~singpolyma/dhall-ruby

7496991bf3cbb4c2a44f1bd96851eebeade88e76 — Stephen Paul Weber 1 year, 2 months ago 77fa3f3
Some test setup tweaks in dhall-lang
2 files changed, 5 insertions(+), 3 deletions(-)

M dhall-lang
M test/test_resolve.rb
M dhall-lang => dhall-lang +1 -1
@@ 1,1 1,1 @@
Subproject commit c7082d910d956bcedfdc51daae989659a2db67bd
Subproject commit affafb9c674c7117e24634ceb5dbdaa1dc8dc0b0

M test/test_resolve.rb => test/test_resolve.rb +4 -2
@@ 327,7 327,7 @@ class TestResolve < Minitest::Test
	TESTS = (DIRPATH + "../dhall-lang/tests/import/").realpath

	Pathname.glob(TESTS + "success/**/*A.dhall").each do |path|
		Dir.chdir(path.dirname)
		Dir.chdir(DIRPATH + "..")
		ENV["XDG_CACHE_HOME"] = (TESTS + "cache").to_s

		test = path.relative_path_from(TESTS).to_s.sub(/A\.dhall$/, "")


@@ 363,7 363,9 @@ class TestResolve < Minitest::Test
				Dhall::Parser.parse_file(TESTS + "#{test}B.dhall").value.normalize,
				Dhall::Parser.parse_file(path).value.resolve(
					resolver:    Dhall::Resolvers::Standard.new,
					relative_to: Dhall::Import::Path.from_string("./")
					relative_to: Dhall::Import::Path.from_string(
						path.relative_path_from(DIRPATH + "..")
					)
				).sync.normalize
			)
		end