Skip to content

Commit

Permalink
add test to make sure we're always operating in "option compare text"…
Browse files Browse the repository at this point in the history
… mode
  • Loading branch information
Andrin Meier committed Mar 5, 2016
1 parent 942b5f7 commit 77f429e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions RubberduckTests/Preprocessing/VBAPreprocessorVisitorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1094,12 +1094,14 @@ public void TestLocale()
#Const a = CDate(""2016/03/02"")
#Const b = CBool(""tRuE"")
#Const c = CBool(""#TRUE#"")
#Const d = ""ß"" = ""ss""
";
System.Threading.Thread.CurrentThread.CurrentCulture = new CultureInfo("ja-jp");
var result = Preprocess(code);
Assert.AreEqual(new DateTime(2016, 3, 2), result.Item1.Get("a").AsDate);
Assert.AreEqual(true, result.Item1.Get("b").AsBool);
Assert.AreEqual(true, result.Item1.Get("c").AsBool);
Assert.AreEqual(true, result.Item1.Get("d").AsBool);
}

[TestMethod]
Expand Down

0 comments on commit 77f429e

Please sign in to comment.