Skip to content

Commit

Permalink
fix: make unit test happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
zong-zhe committed Jun 7, 2023
1 parent ceca9d8 commit 0aba35a
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 4 deletions.
6 changes: 5 additions & 1 deletion kclvm/api/src/testdata/exec-program-with-external-pkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
"external_pkgs": [
{
"pkg_name": "external",
"pkg_path": "./src/testdata/external"
"pkg_path": "./src/testdata_external/external"
},
{
"pkg_name": "external_1",
"pkg_path": "./src/testdata_external/external_1"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"json_result": "[{\"a\": \"Hello External World!\"}]",
"yaml_result": "a: Hello External World!",
"json_result": "[{\"a\": \"Hello External World!\", \"a1\": \"Hello External_1 World!\"}]",
"yaml_result": "a: Hello External World!\na1: Hello External_1 World!",
"escaped_time": "0.002061128616333008"
}
5 changes: 4 additions & 1 deletion kclvm/api/src/testdata/hello_import.k
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
import external as ext
a = ext.a
import external_1 as ext_1

a = ext.a
a1 = ext_1.a
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions kclvm/api/src/testdata_external/external_1/kcl.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[package]
name = "external_1"
edition = "0.0.1"
version = "0.0.1"

[dependencies]
1 change: 1 addition & 0 deletions kclvm/api/src/testdata_external/external_1/main.k
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a = 'Hello External_1 World!'

0 comments on commit 0aba35a

Please sign in to comment.