summaryrefslogtreecommitdiff
path: root/bootstraptest/test_env.rb
diff options
context:
space:
mode:
Diffstat (limited to 'bootstraptest/test_env.rb')
-rw-r--r--bootstraptest/test_env.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/bootstraptest/test_env.rb b/bootstraptest/test_env.rb
new file mode 100644
index 0000000..7d1b45b
--- /dev/null
+++ b/bootstraptest/test_env.rb
@@ -0,0 +1,12 @@
+assert_equal "true", %q{
+ ENV["ENVTEST"] = "\u{e9 3042 d76c}"
+ env = ENV["ENVTEST"]
+ env.valid_encoding?
+}
+
+# different encoding is used for PATH
+assert_equal "true", %q{
+ ENV["PATH"] = "\u{e9 3042 d76c}"
+ env = ENV["PATH"]
+ env.valid_encoding?
+}