# First steps toward functional testing, part 2

Author(s): Jukka Aho <jukka.aho@kapsi.fi>

Abstract: This is demonstration document describing how to combine functional testing, continous integration and documentation in to the single document.

These multi-purposal documents test several things at once. While they test that documentation is up-to-date, calculation results are what is expected and code base is working, they also serve as a tutorials and examples how to use JuliaFEM.

Let's start. **Hello world**. *Local* time is here


```julia
Libc.strftime(time())
```

Basic testing


```julia
f(x) = 2*x
f(1)
```


```julia
@assert f(1) == 2
```

\begin{equation}
A_{ij}=\int_{0}^{L}\phi_{i}\phi_{j}\,\mathrm{d}x
\end{equation}

## Use FactCheck to validate your results

We actually use FactCheck to test our results


```julia
using FactCheck
```


```julia
facts("test that f(1) equals to 2") do
    @fact f(1) => 2
end
```


```julia

```

e097459d77f3dc4a5b0704f5cfaabd9bd5cdedf6
ipynb
Jupyter Notebook
docs/tutorials/2015-07-04-hello-world-functional-tests-part-2.ipynb
UnofficialJuliaMirrorSnapshots/JuliaFEM.jl-f80590ac-b429-510a-8a99-e7c46989f22d
5f6008b05586ef723386b8d4cc2e4fe62136e838
MIT
2015-07-26T04:20:26.000Z
2022-03-10T23:11:04.000Z
docs/tutorials/2015-07-04-hello-world-functional-tests-part-2.ipynb
UnofficialJuliaMirrorSnapshots/JuliaFEM.jl-f80590ac-b429-510a-8a99-e7c46989f22d
5f6008b05586ef723386b8d4cc2e4fe62136e838
MIT
2015-06-23T19:08:29.000Z
2021-12-06T06:45:55.000Z
docs/tutorials/2015-07-04-hello-world-functional-tests-part-2.ipynb
UnofficialJuliaMirrorSnapshots/JuliaFEM.jl-f80590ac-b429-510a-8a99-e7c46989f22d
5f6008b05586ef723386b8d4cc2e4fe62136e838
MIT
2015-06-24T04:51:50.000Z
2022-01-26T08:07:56.000Z
Qwen/Qwen-72B
1. YES
2. YES