mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-16 09:53:36 +00:00
Branches: main
Improve the C# backend.
C# foreign types remain commented out so as not to force an upgrade of the
bootstrap compiler yet.
compiler/handle_options.m:
Enable static ground cells for C# backend.
compiler/ml_global_data.m:
Make fields of static vector structures have `public' access.
Local access doesn't make sense.
Use structs to hold vector common data in C#.
Conform to changes.
compiler/ml_proc_gen.m:
Enable use_common_cells on C#.
Conform to changes.
compiler/mlds.m:
Rename `finality' to `overridability'. The `final' keyword in Java
has multiple meanings, so avoid that word. Use the word `sealed'
to describe classes or virtual methods which cannot be overridden,
which is the keyword in C#.
compiler/ml_switch_gen.m:
Remember the types of mlconst_foreign constants. In the C# backend a
foreign enum value needs to be cast to the right type. For some
reason, there was a field already which could be used for this purpose
but was only ever set to mlds_native_int_type.
compiler/ml_type_gen.m:
Replace ml_gen_final_member_decl_flags with
ml_gen_const_member_decl_flags. Return flags with the `sealed' flag
unset, as that wouldn't make sense for member variables.
Remember the type in mlconst_foreign.
compiler/ml_unify_gen.m:
Remember the type in mlconst_foreign.
compiler/mlds_to_cs.m:
Support static data in C#.
Support foreign enumerations.
Use the `default(T)' operator to initialise certain types of variables,
particularly user-defined types, which the Mercury compiler may not
know enumeration defined in another module, i.e. a value type, which
cannot be initialised with `null'.
Remove the requirement to add mark foreign types which are of value
types with the "valuetype" prefix.
compiler/mlds_to_java.m:
Write out the `final' keyword when either the `sealed' or `const' flags
are set.
Conform to changes.
compiler/rtti_to_mlds.m:
RTTI data doesn't need the `sealed' flag set.
compiler/ml_code_util.m:
compiler/mlds_to_c.m:
compiler/mlds_to_gcc.m:
compiler/mlds_to_il.m:
compiler/ml_elim_nested.m:
Conform to changes.
library/builtin.m:
Export `comparison_result' to C# foreign code.
Fix `deep_copy' for arrays.
library/bitmap.m:
library/pretty_printer.m:
library/store.m:
library/version_array.m:
library/version_hash_table.m:
Implement these modules for C#.
library/io.m:
library/dir.m:
Implement `dir.current_directory' for C#.
library/exception.m:
Implement `catch_impl' for multi and nondet predicates.
library/rtti_implementation.m:
Implement `get_typeclass_info_from_term' for C#.
library/string.m:
Fix `string.set_char' for C#.
library/time.m:
Delete now-unnecessary "valuetype" prefix on foreign type.
library/type_desc.m:
Implement `make_type' for C#.
runtime/mercury_dotnet.cs.in:
Collapse equivalences when comparing TypeInfo_Structs for equality.
tests/hard_coded/Mmakefile:
Disable some tests in C# grade.
tests/hard_coded/ee_dummy.m:
tests/hard_coded/ee_valid_test.m:
tests/hard_coded/equality_pred_which_requires_boxing.m:
tests/hard_coded/exported_foreign_enum.m:
tests/hard_coded/export_test.m:
tests/hard_coded/external_unification_pred.m:
tests/hard_coded/float_gv.m:
tests/hard_coded/foreign_enum_dummy.m:
tests/hard_coded/foreign_import_module_2.m:
tests/hard_coded/foreign_name_mutable.m:
tests/hard_coded/foreign_type2.m:
tests/hard_coded/foreign_type3.m:
tests/hard_coded/foreign_type.m:
tests/hard_coded/hash_table_test.m:
tests/hard_coded/impure_init_and_final.m:
tests/hard_coded/intermod_poly_mode_2.m:
tests/hard_coded/loop_inv_test1.m:
tests/hard_coded/loop_inv_test.m:
tests/hard_coded/multimode.m:
tests/hard_coded/pragma_export.m:
tests/hard_coded/pragma_foreign_export.m:
tests/hard_coded/redoip_clobber.m:
tests/hard_coded/trace_goal_4.m:
tests/hard_coded/uc_export_enum.m:
tests/hard_coded/user_compare.m:
tests/hard_coded/write_xml.m:
Make these test cases work on C#.
tests/hard_coded/deep_copy.exp3:
tests/hard_coded/expand.exp3:
tests/hard_coded/float_reg.exp3:
Add expected results for C#.
tests/hard_coded/string_strip.exp2:
Update this result, which was not updated when the test case changed
previously.
385 lines
13 KiB
Plaintext
385 lines
13 KiB
Plaintext
chomp("foo") = "foo"
|
|
chomp("\ foo") = "\ foo"
|
|
chomp("foo\ ") = "foo\ "
|
|
chomp("\ foo\ ") = "\ foo\ "
|
|
chomp("foo") = "foo"
|
|
chomp("\tfoo") = "\tfoo"
|
|
chomp("foo\t") = "foo\t"
|
|
chomp("\tfoo\t") = "\tfoo\t"
|
|
chomp("foo") = "foo"
|
|
chomp("\nfoo") = "\nfoo"
|
|
chomp("foo\n") = "foo"
|
|
chomp("\nfoo\n") = "\nfoo"
|
|
chomp("foo") = "foo"
|
|
chomp("\ \ foo") = "\ \ foo"
|
|
chomp("foo\ \ ") = "foo\ \ "
|
|
chomp("\ \ foo\ \ ") = "\ \ foo\ \ "
|
|
chomp("foo") = "foo"
|
|
chomp("\ \tfoo") = "\ \tfoo"
|
|
chomp("foo\ \t") = "foo\ \t"
|
|
chomp("\ \tfoo\ \t") = "\ \tfoo\ \t"
|
|
chomp("foo") = "foo"
|
|
chomp("\ \nfoo") = "\ \nfoo"
|
|
chomp("foo\ \n") = "foo\ "
|
|
chomp("\ \nfoo\ \n") = "\ \nfoo\ "
|
|
chomp("foo") = "foo"
|
|
chomp("\t\ foo") = "\t\ foo"
|
|
chomp("foo\t\ ") = "foo\t\ "
|
|
chomp("\t\ foo\t\ ") = "\t\ foo\t\ "
|
|
chomp("foo") = "foo"
|
|
chomp("\t\tfoo") = "\t\tfoo"
|
|
chomp("foo\t\t") = "foo\t\t"
|
|
chomp("\t\tfoo\t\t") = "\t\tfoo\t\t"
|
|
chomp("foo") = "foo"
|
|
chomp("\t\nfoo") = "\t\nfoo"
|
|
chomp("foo\t\n") = "foo\t"
|
|
chomp("\t\nfoo\t\n") = "\t\nfoo\t"
|
|
chomp("foo") = "foo"
|
|
chomp("\n\ foo") = "\n\ foo"
|
|
chomp("foo\n\ ") = "foo\n\ "
|
|
chomp("\n\ foo\n\ ") = "\n\ foo\n\ "
|
|
chomp("foo") = "foo"
|
|
chomp("\n\tfoo") = "\n\tfoo"
|
|
chomp("foo\n\t") = "foo\n\t"
|
|
chomp("\n\tfoo\n\t") = "\n\tfoo\n\t"
|
|
chomp("foo") = "foo"
|
|
chomp("\n\nfoo") = "\n\nfoo"
|
|
chomp("foo\n\n") = "foo\n"
|
|
chomp("\n\nfoo\n\n") = "\n\nfoo\n"
|
|
lstrip("foo") = "foo"
|
|
lstrip("\ foo") = "foo"
|
|
lstrip("foo\ ") = "foo\ "
|
|
lstrip("\ foo\ ") = "foo\ "
|
|
lstrip("foo") = "foo"
|
|
lstrip("\tfoo") = "foo"
|
|
lstrip("foo\t") = "foo\t"
|
|
lstrip("\tfoo\t") = "foo\t"
|
|
lstrip("foo") = "foo"
|
|
lstrip("\nfoo") = "foo"
|
|
lstrip("foo\n") = "foo\n"
|
|
lstrip("\nfoo\n") = "foo\n"
|
|
lstrip("foo") = "foo"
|
|
lstrip("\ \ foo") = "foo"
|
|
lstrip("foo\ \ ") = "foo\ \ "
|
|
lstrip("\ \ foo\ \ ") = "foo\ \ "
|
|
lstrip("foo") = "foo"
|
|
lstrip("\ \tfoo") = "foo"
|
|
lstrip("foo\ \t") = "foo\ \t"
|
|
lstrip("\ \tfoo\ \t") = "foo\ \t"
|
|
lstrip("foo") = "foo"
|
|
lstrip("\ \nfoo") = "foo"
|
|
lstrip("foo\ \n") = "foo\ \n"
|
|
lstrip("\ \nfoo\ \n") = "foo\ \n"
|
|
lstrip("foo") = "foo"
|
|
lstrip("\t\ foo") = "foo"
|
|
lstrip("foo\t\ ") = "foo\t\ "
|
|
lstrip("\t\ foo\t\ ") = "foo\t\ "
|
|
lstrip("foo") = "foo"
|
|
lstrip("\t\tfoo") = "foo"
|
|
lstrip("foo\t\t") = "foo\t\t"
|
|
lstrip("\t\tfoo\t\t") = "foo\t\t"
|
|
lstrip("foo") = "foo"
|
|
lstrip("\t\nfoo") = "foo"
|
|
lstrip("foo\t\n") = "foo\t\n"
|
|
lstrip("\t\nfoo\t\n") = "foo\t\n"
|
|
lstrip("foo") = "foo"
|
|
lstrip("\n\ foo") = "foo"
|
|
lstrip("foo\n\ ") = "foo\n\ "
|
|
lstrip("\n\ foo\n\ ") = "foo\n\ "
|
|
lstrip("foo") = "foo"
|
|
lstrip("\n\tfoo") = "foo"
|
|
lstrip("foo\n\t") = "foo\n\t"
|
|
lstrip("\n\tfoo\n\t") = "foo\n\t"
|
|
lstrip("foo") = "foo"
|
|
lstrip("\n\nfoo") = "foo"
|
|
lstrip("foo\n\n") = "foo\n\n"
|
|
lstrip("\n\nfoo\n\n") = "foo\n\n"
|
|
rstrip("foo") = "foo"
|
|
rstrip("\ foo") = "\ foo"
|
|
rstrip("foo\ ") = "foo"
|
|
rstrip("\ foo\ ") = "\ foo"
|
|
rstrip("foo") = "foo"
|
|
rstrip("\tfoo") = "\tfoo"
|
|
rstrip("foo\t") = "foo"
|
|
rstrip("\tfoo\t") = "\tfoo"
|
|
rstrip("foo") = "foo"
|
|
rstrip("\nfoo") = "\nfoo"
|
|
rstrip("foo\n") = "foo"
|
|
rstrip("\nfoo\n") = "\nfoo"
|
|
rstrip("foo") = "foo"
|
|
rstrip("\ \ foo") = "\ \ foo"
|
|
rstrip("foo\ \ ") = "foo"
|
|
rstrip("\ \ foo\ \ ") = "\ \ foo"
|
|
rstrip("foo") = "foo"
|
|
rstrip("\ \tfoo") = "\ \tfoo"
|
|
rstrip("foo\ \t") = "foo"
|
|
rstrip("\ \tfoo\ \t") = "\ \tfoo"
|
|
rstrip("foo") = "foo"
|
|
rstrip("\ \nfoo") = "\ \nfoo"
|
|
rstrip("foo\ \n") = "foo"
|
|
rstrip("\ \nfoo\ \n") = "\ \nfoo"
|
|
rstrip("foo") = "foo"
|
|
rstrip("\t\ foo") = "\t\ foo"
|
|
rstrip("foo\t\ ") = "foo"
|
|
rstrip("\t\ foo\t\ ") = "\t\ foo"
|
|
rstrip("foo") = "foo"
|
|
rstrip("\t\tfoo") = "\t\tfoo"
|
|
rstrip("foo\t\t") = "foo"
|
|
rstrip("\t\tfoo\t\t") = "\t\tfoo"
|
|
rstrip("foo") = "foo"
|
|
rstrip("\t\nfoo") = "\t\nfoo"
|
|
rstrip("foo\t\n") = "foo"
|
|
rstrip("\t\nfoo\t\n") = "\t\nfoo"
|
|
rstrip("foo") = "foo"
|
|
rstrip("\n\ foo") = "\n\ foo"
|
|
rstrip("foo\n\ ") = "foo"
|
|
rstrip("\n\ foo\n\ ") = "\n\ foo"
|
|
rstrip("foo") = "foo"
|
|
rstrip("\n\tfoo") = "\n\tfoo"
|
|
rstrip("foo\n\t") = "foo"
|
|
rstrip("\n\tfoo\n\t") = "\n\tfoo"
|
|
rstrip("foo") = "foo"
|
|
rstrip("\n\nfoo") = "\n\nfoo"
|
|
rstrip("foo\n\n") = "foo"
|
|
rstrip("\n\nfoo\n\n") = "\n\nfoo"
|
|
strip("foo") = "foo"
|
|
strip("\ foo") = "foo"
|
|
strip("foo\ ") = "foo"
|
|
strip("\ foo\ ") = "foo"
|
|
strip("foo") = "foo"
|
|
strip("\tfoo") = "foo"
|
|
strip("foo\t") = "foo"
|
|
strip("\tfoo\t") = "foo"
|
|
strip("foo") = "foo"
|
|
strip("\nfoo") = "foo"
|
|
strip("foo\n") = "foo"
|
|
strip("\nfoo\n") = "foo"
|
|
strip("foo") = "foo"
|
|
strip("\ \ foo") = "foo"
|
|
strip("foo\ \ ") = "foo"
|
|
strip("\ \ foo\ \ ") = "foo"
|
|
strip("foo") = "foo"
|
|
strip("\ \tfoo") = "foo"
|
|
strip("foo\ \t") = "foo"
|
|
strip("\ \tfoo\ \t") = "foo"
|
|
strip("foo") = "foo"
|
|
strip("\ \nfoo") = "foo"
|
|
strip("foo\ \n") = "foo"
|
|
strip("\ \nfoo\ \n") = "foo"
|
|
strip("foo") = "foo"
|
|
strip("\t\ foo") = "foo"
|
|
strip("foo\t\ ") = "foo"
|
|
strip("\t\ foo\t\ ") = "foo"
|
|
strip("foo") = "foo"
|
|
strip("\t\tfoo") = "foo"
|
|
strip("foo\t\t") = "foo"
|
|
strip("\t\tfoo\t\t") = "foo"
|
|
strip("foo") = "foo"
|
|
strip("\t\nfoo") = "foo"
|
|
strip("foo\t\n") = "foo"
|
|
strip("\t\nfoo\t\n") = "foo"
|
|
strip("foo") = "foo"
|
|
strip("\n\ foo") = "foo"
|
|
strip("foo\n\ ") = "foo"
|
|
strip("\n\ foo\n\ ") = "foo"
|
|
strip("foo") = "foo"
|
|
strip("\n\tfoo") = "foo"
|
|
strip("foo\n\t") = "foo"
|
|
strip("\n\tfoo\n\t") = "foo"
|
|
strip("foo") = "foo"
|
|
strip("\n\nfoo") = "foo"
|
|
strip("foo\n\n") = "foo"
|
|
strip("\n\nfoo\n\n") = "foo"
|
|
lstrip_pred(is_alpha)("foo") = ""
|
|
lstrip_pred(is_alpha)("\ foo") = "\ foo"
|
|
lstrip_pred(is_alpha)("foo\ ") = "\ "
|
|
lstrip_pred(is_alpha)("\ foo\ ") = "\ foo\ "
|
|
lstrip_pred(is_alpha)("foo") = ""
|
|
lstrip_pred(is_alpha)("\tfoo") = "\tfoo"
|
|
lstrip_pred(is_alpha)("foo\t") = "\t"
|
|
lstrip_pred(is_alpha)("\tfoo\t") = "\tfoo\t"
|
|
lstrip_pred(is_alpha)("foo") = ""
|
|
lstrip_pred(is_alpha)("\nfoo") = "\nfoo"
|
|
lstrip_pred(is_alpha)("foo\n") = "\n"
|
|
lstrip_pred(is_alpha)("\nfoo\n") = "\nfoo\n"
|
|
lstrip_pred(is_alpha)("foo") = ""
|
|
lstrip_pred(is_alpha)("\ \ foo") = "\ \ foo"
|
|
lstrip_pred(is_alpha)("foo\ \ ") = "\ \ "
|
|
lstrip_pred(is_alpha)("\ \ foo\ \ ") = "\ \ foo\ \ "
|
|
lstrip_pred(is_alpha)("foo") = ""
|
|
lstrip_pred(is_alpha)("\ \tfoo") = "\ \tfoo"
|
|
lstrip_pred(is_alpha)("foo\ \t") = "\ \t"
|
|
lstrip_pred(is_alpha)("\ \tfoo\ \t") = "\ \tfoo\ \t"
|
|
lstrip_pred(is_alpha)("foo") = ""
|
|
lstrip_pred(is_alpha)("\ \nfoo") = "\ \nfoo"
|
|
lstrip_pred(is_alpha)("foo\ \n") = "\ \n"
|
|
lstrip_pred(is_alpha)("\ \nfoo\ \n") = "\ \nfoo\ \n"
|
|
lstrip_pred(is_alpha)("foo") = ""
|
|
lstrip_pred(is_alpha)("\t\ foo") = "\t\ foo"
|
|
lstrip_pred(is_alpha)("foo\t\ ") = "\t\ "
|
|
lstrip_pred(is_alpha)("\t\ foo\t\ ") = "\t\ foo\t\ "
|
|
lstrip_pred(is_alpha)("foo") = ""
|
|
lstrip_pred(is_alpha)("\t\tfoo") = "\t\tfoo"
|
|
lstrip_pred(is_alpha)("foo\t\t") = "\t\t"
|
|
lstrip_pred(is_alpha)("\t\tfoo\t\t") = "\t\tfoo\t\t"
|
|
lstrip_pred(is_alpha)("foo") = ""
|
|
lstrip_pred(is_alpha)("\t\nfoo") = "\t\nfoo"
|
|
lstrip_pred(is_alpha)("foo\t\n") = "\t\n"
|
|
lstrip_pred(is_alpha)("\t\nfoo\t\n") = "\t\nfoo\t\n"
|
|
lstrip_pred(is_alpha)("foo") = ""
|
|
lstrip_pred(is_alpha)("\n\ foo") = "\n\ foo"
|
|
lstrip_pred(is_alpha)("foo\n\ ") = "\n\ "
|
|
lstrip_pred(is_alpha)("\n\ foo\n\ ") = "\n\ foo\n\ "
|
|
lstrip_pred(is_alpha)("foo") = ""
|
|
lstrip_pred(is_alpha)("\n\tfoo") = "\n\tfoo"
|
|
lstrip_pred(is_alpha)("foo\n\t") = "\n\t"
|
|
lstrip_pred(is_alpha)("\n\tfoo\n\t") = "\n\tfoo\n\t"
|
|
lstrip_pred(is_alpha)("foo") = ""
|
|
lstrip_pred(is_alpha)("\n\nfoo") = "\n\nfoo"
|
|
lstrip_pred(is_alpha)("foo\n\n") = "\n\n"
|
|
lstrip_pred(is_alpha)("\n\nfoo\n\n") = "\n\nfoo\n\n"
|
|
rstrip_pred(is_alpha)("foo") = ""
|
|
rstrip_pred(is_alpha)("\ foo") = "\ "
|
|
rstrip_pred(is_alpha)("foo\ ") = "foo\ "
|
|
rstrip_pred(is_alpha)("\ foo\ ") = "\ foo\ "
|
|
rstrip_pred(is_alpha)("foo") = ""
|
|
rstrip_pred(is_alpha)("\tfoo") = "\t"
|
|
rstrip_pred(is_alpha)("foo\t") = "foo\t"
|
|
rstrip_pred(is_alpha)("\tfoo\t") = "\tfoo\t"
|
|
rstrip_pred(is_alpha)("foo") = ""
|
|
rstrip_pred(is_alpha)("\nfoo") = "\n"
|
|
rstrip_pred(is_alpha)("foo\n") = "foo\n"
|
|
rstrip_pred(is_alpha)("\nfoo\n") = "\nfoo\n"
|
|
rstrip_pred(is_alpha)("foo") = ""
|
|
rstrip_pred(is_alpha)("\ \ foo") = "\ \ "
|
|
rstrip_pred(is_alpha)("foo\ \ ") = "foo\ \ "
|
|
rstrip_pred(is_alpha)("\ \ foo\ \ ") = "\ \ foo\ \ "
|
|
rstrip_pred(is_alpha)("foo") = ""
|
|
rstrip_pred(is_alpha)("\ \tfoo") = "\ \t"
|
|
rstrip_pred(is_alpha)("foo\ \t") = "foo\ \t"
|
|
rstrip_pred(is_alpha)("\ \tfoo\ \t") = "\ \tfoo\ \t"
|
|
rstrip_pred(is_alpha)("foo") = ""
|
|
rstrip_pred(is_alpha)("\ \nfoo") = "\ \n"
|
|
rstrip_pred(is_alpha)("foo\ \n") = "foo\ \n"
|
|
rstrip_pred(is_alpha)("\ \nfoo\ \n") = "\ \nfoo\ \n"
|
|
rstrip_pred(is_alpha)("foo") = ""
|
|
rstrip_pred(is_alpha)("\t\ foo") = "\t\ "
|
|
rstrip_pred(is_alpha)("foo\t\ ") = "foo\t\ "
|
|
rstrip_pred(is_alpha)("\t\ foo\t\ ") = "\t\ foo\t\ "
|
|
rstrip_pred(is_alpha)("foo") = ""
|
|
rstrip_pred(is_alpha)("\t\tfoo") = "\t\t"
|
|
rstrip_pred(is_alpha)("foo\t\t") = "foo\t\t"
|
|
rstrip_pred(is_alpha)("\t\tfoo\t\t") = "\t\tfoo\t\t"
|
|
rstrip_pred(is_alpha)("foo") = ""
|
|
rstrip_pred(is_alpha)("\t\nfoo") = "\t\n"
|
|
rstrip_pred(is_alpha)("foo\t\n") = "foo\t\n"
|
|
rstrip_pred(is_alpha)("\t\nfoo\t\n") = "\t\nfoo\t\n"
|
|
rstrip_pred(is_alpha)("foo") = ""
|
|
rstrip_pred(is_alpha)("\n\ foo") = "\n\ "
|
|
rstrip_pred(is_alpha)("foo\n\ ") = "foo\n\ "
|
|
rstrip_pred(is_alpha)("\n\ foo\n\ ") = "\n\ foo\n\ "
|
|
rstrip_pred(is_alpha)("foo") = ""
|
|
rstrip_pred(is_alpha)("\n\tfoo") = "\n\t"
|
|
rstrip_pred(is_alpha)("foo\n\t") = "foo\n\t"
|
|
rstrip_pred(is_alpha)("\n\tfoo\n\t") = "\n\tfoo\n\t"
|
|
rstrip_pred(is_alpha)("foo") = ""
|
|
rstrip_pred(is_alpha)("\n\nfoo") = "\n\n"
|
|
rstrip_pred(is_alpha)("foo\n\n") = "foo\n\n"
|
|
rstrip_pred(is_alpha)("\n\nfoo\n\n") = "\n\nfoo\n\n"
|
|
prefix_length(is_whitespace)("foo") = "0"
|
|
prefix_length(is_whitespace)("\ foo") = "1"
|
|
prefix_length(is_whitespace)("foo\ ") = "0"
|
|
prefix_length(is_whitespace)("\ foo\ ") = "1"
|
|
prefix_length(is_whitespace)("foo") = "0"
|
|
prefix_length(is_whitespace)("\tfoo") = "1"
|
|
prefix_length(is_whitespace)("foo\t") = "0"
|
|
prefix_length(is_whitespace)("\tfoo\t") = "1"
|
|
prefix_length(is_whitespace)("foo") = "0"
|
|
prefix_length(is_whitespace)("\nfoo") = "1"
|
|
prefix_length(is_whitespace)("foo\n") = "0"
|
|
prefix_length(is_whitespace)("\nfoo\n") = "1"
|
|
prefix_length(is_whitespace)("foo") = "0"
|
|
prefix_length(is_whitespace)("\ \ foo") = "2"
|
|
prefix_length(is_whitespace)("foo\ \ ") = "0"
|
|
prefix_length(is_whitespace)("\ \ foo\ \ ") = "2"
|
|
prefix_length(is_whitespace)("foo") = "0"
|
|
prefix_length(is_whitespace)("\ \tfoo") = "2"
|
|
prefix_length(is_whitespace)("foo\ \t") = "0"
|
|
prefix_length(is_whitespace)("\ \tfoo\ \t") = "2"
|
|
prefix_length(is_whitespace)("foo") = "0"
|
|
prefix_length(is_whitespace)("\ \nfoo") = "2"
|
|
prefix_length(is_whitespace)("foo\ \n") = "0"
|
|
prefix_length(is_whitespace)("\ \nfoo\ \n") = "2"
|
|
prefix_length(is_whitespace)("foo") = "0"
|
|
prefix_length(is_whitespace)("\t\ foo") = "2"
|
|
prefix_length(is_whitespace)("foo\t\ ") = "0"
|
|
prefix_length(is_whitespace)("\t\ foo\t\ ") = "2"
|
|
prefix_length(is_whitespace)("foo") = "0"
|
|
prefix_length(is_whitespace)("\t\tfoo") = "2"
|
|
prefix_length(is_whitespace)("foo\t\t") = "0"
|
|
prefix_length(is_whitespace)("\t\tfoo\t\t") = "2"
|
|
prefix_length(is_whitespace)("foo") = "0"
|
|
prefix_length(is_whitespace)("\t\nfoo") = "2"
|
|
prefix_length(is_whitespace)("foo\t\n") = "0"
|
|
prefix_length(is_whitespace)("\t\nfoo\t\n") = "2"
|
|
prefix_length(is_whitespace)("foo") = "0"
|
|
prefix_length(is_whitespace)("\n\ foo") = "2"
|
|
prefix_length(is_whitespace)("foo\n\ ") = "0"
|
|
prefix_length(is_whitespace)("\n\ foo\n\ ") = "2"
|
|
prefix_length(is_whitespace)("foo") = "0"
|
|
prefix_length(is_whitespace)("\n\tfoo") = "2"
|
|
prefix_length(is_whitespace)("foo\n\t") = "0"
|
|
prefix_length(is_whitespace)("\n\tfoo\n\t") = "2"
|
|
prefix_length(is_whitespace)("foo") = "0"
|
|
prefix_length(is_whitespace)("\n\nfoo") = "2"
|
|
prefix_length(is_whitespace)("foo\n\n") = "0"
|
|
prefix_length(is_whitespace)("\n\nfoo\n\n") = "2"
|
|
suffix_length(is_whitespace)("foo") = "0"
|
|
suffix_length(is_whitespace)("\ foo") = "0"
|
|
suffix_length(is_whitespace)("foo\ ") = "1"
|
|
suffix_length(is_whitespace)("\ foo\ ") = "1"
|
|
suffix_length(is_whitespace)("foo") = "0"
|
|
suffix_length(is_whitespace)("\tfoo") = "0"
|
|
suffix_length(is_whitespace)("foo\t") = "1"
|
|
suffix_length(is_whitespace)("\tfoo\t") = "1"
|
|
suffix_length(is_whitespace)("foo") = "0"
|
|
suffix_length(is_whitespace)("\nfoo") = "0"
|
|
suffix_length(is_whitespace)("foo\n") = "1"
|
|
suffix_length(is_whitespace)("\nfoo\n") = "1"
|
|
suffix_length(is_whitespace)("foo") = "0"
|
|
suffix_length(is_whitespace)("\ \ foo") = "0"
|
|
suffix_length(is_whitespace)("foo\ \ ") = "2"
|
|
suffix_length(is_whitespace)("\ \ foo\ \ ") = "2"
|
|
suffix_length(is_whitespace)("foo") = "0"
|
|
suffix_length(is_whitespace)("\ \tfoo") = "0"
|
|
suffix_length(is_whitespace)("foo\ \t") = "2"
|
|
suffix_length(is_whitespace)("\ \tfoo\ \t") = "2"
|
|
suffix_length(is_whitespace)("foo") = "0"
|
|
suffix_length(is_whitespace)("\ \nfoo") = "0"
|
|
suffix_length(is_whitespace)("foo\ \n") = "2"
|
|
suffix_length(is_whitespace)("\ \nfoo\ \n") = "2"
|
|
suffix_length(is_whitespace)("foo") = "0"
|
|
suffix_length(is_whitespace)("\t\ foo") = "0"
|
|
suffix_length(is_whitespace)("foo\t\ ") = "2"
|
|
suffix_length(is_whitespace)("\t\ foo\t\ ") = "2"
|
|
suffix_length(is_whitespace)("foo") = "0"
|
|
suffix_length(is_whitespace)("\t\tfoo") = "0"
|
|
suffix_length(is_whitespace)("foo\t\t") = "2"
|
|
suffix_length(is_whitespace)("\t\tfoo\t\t") = "2"
|
|
suffix_length(is_whitespace)("foo") = "0"
|
|
suffix_length(is_whitespace)("\t\nfoo") = "0"
|
|
suffix_length(is_whitespace)("foo\t\n") = "2"
|
|
suffix_length(is_whitespace)("\t\nfoo\t\n") = "2"
|
|
suffix_length(is_whitespace)("foo") = "0"
|
|
suffix_length(is_whitespace)("\n\ foo") = "0"
|
|
suffix_length(is_whitespace)("foo\n\ ") = "2"
|
|
suffix_length(is_whitespace)("\n\ foo\n\ ") = "2"
|
|
suffix_length(is_whitespace)("foo") = "0"
|
|
suffix_length(is_whitespace)("\n\tfoo") = "0"
|
|
suffix_length(is_whitespace)("foo\n\t") = "2"
|
|
suffix_length(is_whitespace)("\n\tfoo\n\t") = "2"
|
|
suffix_length(is_whitespace)("foo") = "0"
|
|
suffix_length(is_whitespace)("\n\nfoo") = "0"
|
|
suffix_length(is_whitespace)("foo\n\n") = "2"
|
|
suffix_length(is_whitespace)("\n\nfoo\n\n") = "2"
|