Adjusted number literals to compiler v2
This commit is contained in:
@@ -133,7 +133,7 @@
|
||||
}
|
||||
|
||||
operand "an operand"
|
||||
= val:number {return {val}}
|
||||
= val:number {return Number.isSafeInteger(val) ? {val} : { val:String(val), literal:'number' }}
|
||||
/ val:string {return {val}}
|
||||
/ function
|
||||
/ ref
|
||||
|
||||
@@ -8,7 +8,7 @@ describe("$filter", () => {
|
||||
const types = {
|
||||
strings: "'some string'",
|
||||
integers: 11,
|
||||
// decimals: 0.99, //> REVISIT: wait for compiler v2.0.4 ?
|
||||
decimals: 0.99,
|
||||
// ...
|
||||
}
|
||||
it.each(Object.keys(types))("should support expressions with %s", (t) => {
|
||||
|
||||
Reference in New Issue
Block a user