Update
This commit is contained in:
parent
9b875bb30d
commit
423e195ce3
|
@ -11,6 +11,7 @@
|
||||||
<script src='https://unpkg.com/prismjs@1.6.0/components/prism-jsx.min.js'></script>
|
<script src='https://unpkg.com/prismjs@1.6.0/components/prism-jsx.min.js'></script>
|
||||||
<script src='https://unpkg.com/prismjs@1.6.0/components/prism-bash.min.js'></script>
|
<script src='https://unpkg.com/prismjs@1.6.0/components/prism-bash.min.js'></script>
|
||||||
<script src='https://unpkg.com/prismjs@1.6.0/components/prism-scss.min.js'></script>
|
<script src='https://unpkg.com/prismjs@1.6.0/components/prism-scss.min.js'></script>
|
||||||
|
<script src='https://unpkg.com/prismjs@1.6.0/components/prism-elixir.min.js'></script>
|
||||||
<script src='https://unpkg.com/prismjs@1.6.0/plugins/line-highlight/prism-line-highlight.min.js'></script>
|
<script src='https://unpkg.com/prismjs@1.6.0/plugins/line-highlight/prism-line-highlight.min.js'></script>
|
||||||
<link rel='stylesheet' href='https://unpkg.com/prismjs@1.6.0/themes/prism.css'>
|
<link rel='stylesheet' href='https://unpkg.com/prismjs@1.6.0/themes/prism.css'>
|
||||||
<link rel='stylesheet' href='https://unpkg.com/prismjs@1.6.0/plugins/line-highlight/prism-line-highlight.css'>
|
<link rel='stylesheet' href='https://unpkg.com/prismjs@1.6.0/plugins/line-highlight/prism-line-highlight.css'>
|
||||||
|
|
|
@ -94,8 +94,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.h3-section.-prime > .body {
|
.h3-section.-prime > .body {
|
||||||
|
@media (min-width: 481px) {
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
box-shadow:
|
box-shadow:
|
||||||
0 8px 12px rgba($baseB-600, 0.3),
|
0 8px 12px rgba($baseB-600, 0.3),
|
||||||
0 2px 3px rgba($baseB-400, 0.35);
|
0 2px 3px rgba($baseB-400, 0.35);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
margin-right: 2px;
|
margin-right: 2px;
|
||||||
letter-spacing: 0.2em;
|
letter-spacing: 0.2em;
|
||||||
font-family: roboto;
|
font-family: $body-font;
|
||||||
color: $text-color;
|
color: $text-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
$gutter: 32px;
|
$gutter: 32px;
|
||||||
$column: 400px;
|
$column: 400px;
|
||||||
|
|
||||||
$body-font: roboto, sans-serif;
|
$system-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
||||||
|
$body-font: $system-font;
|
||||||
$monospace-font: 'fira mono', Consolas, menlo, 'Andale Mono', 'Ubuntu Mono', monospace;
|
$monospace-font: 'fira mono', Consolas, menlo, 'Andale Mono', 'Ubuntu Mono', monospace;
|
||||||
|
|
||||||
$body-bg: #f8f8fb;
|
$body-bg: #f8f8fb;
|
||||||
|
|
|
@ -1,8 +1,11 @@
|
||||||
---
|
---
|
||||||
title: ExUnit
|
title: ExUnit
|
||||||
category: Elixir
|
category: Elixir
|
||||||
|
layout: 2017/sheet
|
||||||
---
|
---
|
||||||
|
|
||||||
|
### Test cases
|
||||||
|
|
||||||
```elixir
|
```elixir
|
||||||
defmodule MyTest do
|
defmodule MyTest do
|
||||||
use ExUnit.Case
|
use ExUnit.Case
|
||||||
|
@ -43,7 +46,7 @@ defmodule AssertionTest do
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
### [Assertions](http://devdocs.io/elixir/ex_unit/exunit.assertions)
|
### Assertions
|
||||||
|
|
||||||
```elixir
|
```elixir
|
||||||
assert x == y
|
assert x == y
|
||||||
|
@ -57,8 +60,11 @@ assert_raise ArithmeticError, "message", fn -> ...
|
||||||
assert_raise ArithmeticError, ~r/message/, fn -> ...
|
assert_raise ArithmeticError, ~r/message/, fn -> ...
|
||||||
|
|
||||||
flunk "This should've been an error"
|
flunk "This should've been an error"
|
||||||
|
```
|
||||||
|
|
||||||
|
See: [Assertions](http://devdocs.io/elixir/ex_unit/exunit.assertions)
|
||||||
|
|
||||||
## Also see
|
## Also see
|
||||||
|
{: .-one-column}
|
||||||
|
|
||||||
- <http://devdocs.io/elixir/ex_unit/exunit#configure/1>
|
- <http://devdocs.io/elixir/ex_unit/exunit#configure/1>
|
||||||
|
|
Loading…
Reference in New Issue