public void ConstantCaching_Unqualified2() { TestOutput(@" module M module N i = 0 while i < 2 puts defined?(C) # tested cache const_set(:C, 2) if i == 0 i += 1 end end end ", @" nil constant "); }