Index: lib/src/prism/tests/languages/fsharp/string_feature.test |
diff --git a/lib/src/prism/tests/languages/fsharp/string_feature.test b/lib/src/prism/tests/languages/fsharp/string_feature.test |
new file mode 100644 |
index 0000000000000000000000000000000000000000..89412ac0726fc78b38329b14bac95acc21c9893b |
--- /dev/null |
+++ b/lib/src/prism/tests/languages/fsharp/string_feature.test |
@@ -0,0 +1,45 @@ |
+"" |
+"fo\"o" |
+"foo\ |
+bar" |
+"foo"B |
+ |
+@"" |
+@"foo" |
+@"fo""o" |
+@"foo"B |
+ |
+"""""" |
+"""fo""o" |
+bar""" |
+"""foo"""B |
+ |
+'a' |
+'\'' |
+'\\' |
+ |
+---------------------------------------------------- |
+ |
+[ |
+ ["string", "\"\""], |
+ ["string", "\"fo\\\"o\""], |
+ ["string", "\"foo\\\r\nbar\""], |
+ ["string", "\"foo\"B"], |
+ |
+ ["string", "@\"\""], |
+ ["string", "@\"foo\""], |
+ ["string", "@\"fo\"\"o\""], |
+ ["string", "@\"foo\"B"], |
+ |
+ ["string", "\"\"\"\"\"\""], |
+ ["string", "\"\"\"fo\"\"o\"\r\nbar\"\"\""], |
+ ["string", "\"\"\"foo\"\"\"B"], |
+ |
+ ["string", "'a'"], |
+ ["string", "'\\''"], |
+ ["string", "'\\\\'"] |
+] |
+ |
+---------------------------------------------------- |
+ |
+Checks for normal strings, verbatim strings, triple-quoted strings and character literals. |