github.com/zhongdalu/gf@v1.0.0/g/test/gtest/gtest_test.go (about)

     1  // Copyright 2018 gf Author(https://github.com/zhongdalu/gf). All Rights Reserved.
     2  //
     3  // This Source Code Form is subject to the terms of the MIT License.
     4  // If a copy of the MIT was not distributed with this file,
     5  // You can obtain one at https://github.com/zhongdalu/gf.
     6  
     7  package gtest_test
     8  
     9  import (
    10  	"testing"
    11  
    12  	"github.com/zhongdalu/gf/g/test/gtest"
    13  )
    14  
    15  func TestCase(t *testing.T) {
    16  	gtest.Case(t, func() {
    17  		gtest.Assert(1, 1)
    18  		gtest.AssertNE(1, 0)
    19  		gtest.AssertEQ(float32(123.456), float32(123.456))
    20  		gtest.AssertEQ(float64(123.456), float64(123.456))
    21  	})
    22  }