Skip to content

Commit

Permalink
Merge pull request #2057 from malloydata/jlsmart-modbigquery
Browse files Browse the repository at this point in the history
Added test verifying proper behavior for modulus operator.
  • Loading branch information
anagrd-ai authored Dec 17, 2024
2 parents 845d52d + e01e32a commit bbf6027
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/src/databases/all/expr.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,16 @@ describe.each(runtimes.runtimeList)('%s', (databaseName, runtime) => {
}
);

it('uses the correct symbol for modulus, either % or MOD', async () => {
await expect(`
run: aircraft_models->{
group_by: mod_example is 10 % 4
}
`).malloyResultMatches(expressionModel, {
mod_example: 2,
});
});

it('named query metadata undefined', async () => {
const result = await expressionModel
.loadQuery(
Expand Down

0 comments on commit bbf6027

Please sign in to comment.