Test.hx 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. package pack.inner;
  2. import utest.Assert;
  3. class Test extends utest.Test {
  4. function testUnqualifiedThisPack() {
  5. Assert.equals("pack.inner.InnerMod.lowerCase", pack.inner.InnerMod.lowerCase());
  6. Assert.equals("pack.inner.InnerMod.UpperCase", pack.inner.InnerMod.UpperCase());
  7. }
  8. function testUnqualifiedUpperPack() {
  9. Assert.equals("pack.Mod1.lowerCasePack", Mod1.lowerCasePack());
  10. Assert.equals("pack.Mod1.UpperCasePack", Mod1.UpperCasePack());
  11. }
  12. function testUnqualifiedRootPack() {
  13. Assert.equals("RootMod1.lowerCase", RootMod1.lowerCase());
  14. Assert.equals("RootMod1.UpperCase", RootMod1.UpperCase());
  15. }
  16. function testUnqualifiedRootPackStd() {
  17. Assert.equals("RootMod1.lowerCase", std.RootMod1.lowerCase());
  18. Assert.equals("RootMod1.UpperCase", std.RootMod1.UpperCase());
  19. }
  20. function testUnqualifiedRootPackStdShadowed() {
  21. var RootMod = 1;
  22. Assert.equals("RootMod1.lowerCase", std.RootMod1.lowerCase());
  23. Assert.equals("RootMod1.UpperCase", std.RootMod1.UpperCase());
  24. }
  25. }