Skip to content

FALSE() and TRUE() functions aliases are missing #5

Description

@wojciechczerniak

Description

For compatibility reasons functions =TRUE() and =FALSE() should allow to leave off the parenthesis. =TRUE and =FALSE should be an alias to the corresponding function. Supported by Excel and Google Spreadsheet.

Add tests

TRUE

it('works without parenthesis', () => {
  const engine = HyperFormula.buildFromArray([['=TRUE']])

  expect(engine.getCellValue(adr('A1'))).toEqual(true)
})

FALSE

it('works without parenthesis', () => {
  const engine = HyperFormula.buildFromArray([['=FALSE']])

  expect(engine.getCellValue(adr('A1'))).toEqual(false)
})

Reference

https://support.office.com/en-us/article/true-function-7652c6e3-8987-48d0-97cd-ef223246b3fb

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

FeatureSomething we can add later on without introducing a breaking changeODFF VariancesImplementation-defined, Unspecified, and Behavioral Changes

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions