mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 02:03:06 -05:00
a45b2ea6fb
This commit adds a few basic variable substitution operations: - length Find the length of a string or a list - length_across Find the lengths of things inside a list - remove_{suffix,prefix} Remove a suffix or a prefix from all the passed values - regex_replace Replace all matches of a given regex with a given template - split Split the given string with the given delimiter (or to its code points if the delimiter is empty) - concat_lists concatenates any given lists into one Closes #4316 (the ancient version of this same feature)
11 lines
197 B
PHP
11 lines
197 B
PHP
fail() {
|
|
# The AST ends up at stderr, and CI checks for 'fail' (uppercase)
|
|
# Trick it into not failing the test.
|
|
echo "FA""IL:" $*
|
|
exit 1
|
|
}
|
|
|
|
pass() {
|
|
echo "PA""SS"
|
|
exit 0
|
|
}
|