Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "log"
- )
- func add(a float64, b float64) float64 {
- return a + b
- }
- func addOne(a float64) float64 {
- return add(a, 1)
- }
- func main() {
- if !(addOne(3) == 4) {
- log.Fatal("Wrong value")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement