Skip to content

Commit

Permalink
Merge pull request #1144 from OpenAF/t8
Browse files Browse the repository at this point in the history
T8
  • Loading branch information
nmaguiar authored Oct 30, 2024
2 parents f7b02f5 + 948dc12 commit 402bacd
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 4 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -140,22 +140,22 @@
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.18.0</version>
<version>2.18.1</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.18.0</version>
<version>2.18.1</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.18.0</version>
<version>2.18.1</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-toml</artifactId>
<version>2.18.0</version>
<version>2.18.1</version>
</dependency>
<dependency>
<groupId>org.fusesource.jansi</groupId>
Expand Down
21 changes: 21 additions & 0 deletions tests/autoTestAll.Generic.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,27 @@
ow.test.assert($path({ y: { a: 1 } }, "assignp('y', 'x', `false`)"), { y: { a: 1, x: false } }, "Problem with $path assignp")
ow.test.assert($path({}, "env('PATH')"), getEnv("PATH"), "Problem with $path env")
ow.test.assert($path({}, "envs('^PATH$')"), [ { name: 'PATH', value: getEnv("PATH") } ], "Problem with $path envs")
ow.test.assert($path({}, "timeagoAbbr(now('5000'))"), "5secs", "Problem with $path timeagoAbbr")
ow.test.assert($path({}, "date_diff(now('60000'), 'minutes', __)"), 1, "Problem with $path date_diff")
ow.test.assert($path({}, "to_bytesAbbr(`2048`)"), "2.00 KB", "Problem with $path to_bytesAbbr")
ow.test.assert($path({}, "to_numAbbr(`2000`)"), "2k", "Problem with $path to_numAbbr")
ow.test.assert($path({}, "from_siAbbr('2m')"), 0.002, "Problem with $path from_siAbbr")
ow.test.assert($path({}, "from_timeAbbr('5s')"), 5000, "Problem with $path from_timeAbbr")
ow.test.assert($path({}, "timeago(now('1000'))"), "1 seconds ago", "Problem with $path timeago")
ow.test.assert($path({}, "upper_case('AbC')"), "ABC", "Problem with $path upper_case")
ow.test.assert($path({}, "lower_case('AbC')"), "abc", "Problem with $path lower_case")
ow.test.assert($path({}, "concat('a', concat('b', 'c'))"), "abc", "Problem with $path concat")
ow.test.assert($path({ x: { a: 1, b: 0 }}, "to_slon(x)"), "(a: 1, b: 0)", "Problem with $path to_slon")
ow.test.assert($path({ x: { a: 1, b: 0 }}, "to_json(x,'')"), "{\"a\":1,\"b\":0}", "Problem with $path to_json")
ow.test.assert($path({ x: { a: 1, b: 0 }}, "to_json(@,'')"), "{\"x\":{\"a\":1,\"b\":0}}", "Problem with $path to_json")
ow.test.assert($path({}, "trim(' abc ')"), "abc", "Problem with $path trim")
ow.test.assert($path({ a: 1 }, "nvl(b, '0')"), "0", "Problem with $path nvl")
ow.test.assert($path({}, "add(`2`, `3`)"), 5, "Problem with $path add")
ow.test.assert($path({}, "sub(`2`, `3`)"), -1, "Problem with $path sub")
ow.test.assert($path({}, "mul(`2`, `3`)"), 6, "Problem with $path mul")
ow.test.assert($path({}, "div(`6`, `3`)"), 2, "Problem with $path div")
ow.test.assert($path({}, "mod(`6`, `3`)"), 0, "Problem with $path mod")
ow.test.assert($path({}, "range(`2`)"), [ 1, 2 ], "Problem with $path range")
}

exports.testCache = function() {
Expand Down

0 comments on commit 402bacd

Please sign in to comment.