Skip to content

Commit

Permalink
Document Unicode support
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkdp committed Mar 30, 2017
1 parent 5051deb commit cf64905
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ Features

**Note:** You can use `ans` (answer) to refer the result of the last calculation.

- Unicode support:
```
λ = 2 × 300µm
ν = c/λ → GHz
```

- Commands:
```
help, ?
Expand Down
4 changes: 4 additions & 0 deletions test/Main.purs
Original file line number Diff line number Diff line change
Expand Up @@ -740,3 +740,7 @@ main = runTest do

test "Unicode" do
expectOutput' "6.62607e-34J·s" "2π×ℏ"

let env1 = initialEnvironment
env2 = (repl fmtPlain env1 "λ = 2 × 300µm").newEnv
expectOutput env2 "499.654GHz" "ν = c/λ → GHz"

0 comments on commit cf64905

Please sign in to comment.