Estimated hours taken: 1
Branches: main
Add some new predicates to the string module.
library/string:
Add a new predicate string.is_all_digits/1 that tests whether a string
consists entirely of decimal digits.
Export the predicate string.all_match/2.
Add string.remove_prefix/3 which is a synonym for the string.append(in, uo, in)
except that it has a more meaningful name and the argument ordering is more
convenient for use with higher-order code.
profiler/demangle.m:
Do not define remove_prefix/3 here; use the one from the standard library
instead.
NEWS:
Announce the new additions.
tests/general/string_test.m:
tests/general/string_test_2.m:
tests/general/string_test_2.exp:
Add a test for remove_prefix/3.
Update the syntax used in these files, e.g. replace DCGs with
state variables etc.
tests/general/.cvsignore:
Ignore generated files.
Estimated hours taken: 1
runtests:
Compare actual outputs with the outputs computed by NU-Prolog.
Mmake:
Enable the dnf test.
commit_bug.m:
Use more readable formatting.
environment.m:
Since the expected output may be generated on a different machine
than the one on which the test is run, don't print the value of
a possibly machine-specific environment variable such as PATH.
semidet_lambda.m:
Fix the name of the module.
univ.m:
Add a couple of tests to exercise the typeinfo comparison routine.
unreachable.m:
Fix a comment.
*.exp:
The expected output files.