summaryrefslogtreecommitdiffstats
path: root/src/fluent-bit/tests/lib/shunit2/examples/math.inc
blob: 4097106691dc15b42faf13f476296e9a446a639a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# available as examples/math.inc

add_generic()
{
  num_a=$1
  num_b=$2

  expr $1 + $2
}

add_bash()
{
  num_a=$1
  num_b=$2

  echo $(($1 + $2))
}