-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
247 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module Issue3504 { | ||
version = "1.0"; | ||
desc = "issue #3504 test module"; | ||
author = "Qore Technologies, s.r.o."; | ||
url = "https://qore.org"; | ||
license = "MIT"; | ||
} | ||
|
||
public namespace Util { | ||
public sub t() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env qore | ||
# -*- mode: qore; indent-tabs-mode: nil -*- | ||
|
||
%new-style | ||
%enable-all-warnings | ||
%require-types | ||
%strict-args | ||
%allow-injection | ||
|
||
%requires ../../../../../qlib/Util.qm | ||
%requires ../../../../../qlib/QUnit.qm | ||
|
||
%requires ./Issue3504.qm | ||
|
||
%exec-class Issue3504Test | ||
|
||
class Issue3504Test inherits QUnit::Test { | ||
constructor() : Test("Issue3504Test", "1.0") { | ||
addTestCase("Issue3504Test Test", \test()); | ||
|
||
set_return_value(main()); | ||
} | ||
|
||
test() { | ||
Program p0(PO_NO_USER_API); | ||
p0.importFunction("t"); | ||
p0.loadApplyToUserModule("Util", True); | ||
Program p1(); | ||
p1.loadModule("Util"); | ||
assertEq(Type::String, p1.callFunction("get_random_string").type()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.