Skip to content

Commit

Permalink
test associativity
Browse files Browse the repository at this point in the history
  • Loading branch information
jenseng committed Dec 1, 2023
1 parent 5175289 commit 2c97342
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/sample.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: test
on: push
jobs:
test:
runs-on: ubuntu-latest
env:
equalityAssociativity: ${{ '' == '' == 1 && 'left-associative' || 1 == '' == '' && 'right-associative' || 'unknown' }}
relationalAssociativity: ${{ 1 < 2 < 3 && 'left-associative' || 3 > 2 > 1 && 'right-associative' || 'unknown' }}
relationalPrecedence: ${{ 1 < 2 == true == 2 > 1 && 'higher than equality' || '1' < '1.0' == true && 'lower than equality' || 'same as equality' }}
steps:
- run: env|sort|grep -E 'Associativity|Precedence'

0 comments on commit 2c97342

Please sign in to comment.