Skip to content

Commit

Permalink
Add test for ERC-67 containing gas
Browse files Browse the repository at this point in the history
closes #4
  • Loading branch information
ligi committed Oct 28, 2017
1 parent 7d4b2e1 commit 91e0ef4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions erc67/src/test/java/org/kethereum/erc67/TheERC67.kt
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,11 @@ class TheERC67 {
assertThat(probe.getValue()).isEqualTo(it.toString())
}
}


@Test
fun parsingERC67WithGasValueWorks() {
assertThat(ERC67("ethereum:0x00AB42?value=1&gas=2").getValue()).isEqualTo("1")
assertThat(ERC67("ethereum:0x00AB42?gas=2&value=1").getValue()).isEqualTo("1")
}
}

0 comments on commit 91e0ef4

Please sign in to comment.