Logo
Explore Help
Sign In
intercal/not-python-rust
1
0
Fork 0
You've already forked not-python-rust
Code Issues Pull Requests Releases Wiki Activity
Files
3263656668a429a47387f72033e4ce05130c968a
not-python-rust/tests/modules.npp

13 lines
247 B
Plaintext
Raw Normal View History

Add some tests for modules * .gitignore now ignores *.got for *anything* under the tests/ directory * runtests.sh ignores files in the tests/ directory that have the string "test_import_" in them, so they are not run as tests themselves * Add a couple of basic module functionality tests Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2024-10-04 11:11:46 -07:00
import "modules/test_import_directory.npp"
import test_import_local
println(test_import_local.foo)
println(test_import_local.bar)
println(test_import_local.baz)
Implement `import a, b, c from foo` syntax This brings stuff into the local scope, but it is a little funky with local scopes that are above the current level (in the same function or module). Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2024-10-04 20:11:06 -07:00
import foo, bar, baz from test_import_local
println(foo)
println(bar)
println(baz)
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.5 Page: 34ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API