Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for boolTest (0.13 sec)

  1. test/ken/cplx1.go

    		panic("fail")
    	}
    
    	b = C1 != (5 + 6i)
    	if b {
    		println("const bool 4", b)
    		panic("fail")
    	}
    
    	// vars passed through parameters
    	booltest(5+6i, true)
    	booltest(5+7i, false)
    	booltest(6+6i, false)
    	booltest(6+9i, false)
    }
    
    func booltest(a complex64, r bool) {
    	var b bool
    
    	b = a == C1
    	if b != r {
    		println("param bool 1", a, b, r)
    		panic("fail")
    	}
    
    	b = a != C1
    	if b == r {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 1.4K bytes
    - Viewed (0)
  2. src/database/sql/convert_test.go

    		}
    		if ct.wantf64 != 0 && ct.wantf64 != float64Value(ct.d) {
    			errf("want float32 %v, got %v", ct.wantf64, float64Value(ct.d))
    		}
    		if bp, boolTest := ct.d.(*bool); boolTest && *bp != ct.wantbool && ct.wanterr == "" {
    			errf("want bool %v, got %v", ct.wantbool, *bp)
    		}
    		if !ct.wanttime.IsZero() && !ct.wanttime.Equal(timeValue(ct.d)) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 20:23:22 UTC 2024
    - 17K bytes
    - Viewed (0)
  3. src/encoding/asn1/asn1_test.go

    package asn1
    
    import (
    	"bytes"
    	"encoding/hex"
    	"fmt"
    	"math"
    	"math/big"
    	"reflect"
    	"strings"
    	"testing"
    	"time"
    )
    
    type boolTest struct {
    	in  []byte
    	ok  bool
    	out bool
    }
    
    var boolTestData = []boolTest{
    	{[]byte{0x00}, true, false},
    	{[]byte{0xff}, true, true},
    	{[]byte{0x00, 0x00}, false, false},
    	{[]byte{0xff, 0xff}, false, false},
    	{[]byte{0x01}, false, false},
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 29 18:24:36 UTC 2023
    - 43.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/test/divconst_test.go

    func BenchmarkDivisiblePow2constI32(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		boolres = int32(i)%16 == 0
    	}
    }
    
    func BenchmarkDivisibleconstI32(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		boolres = int32(i)%7 == 0
    	}
    }
    
    func BenchmarkDivisibleWDivconstI32(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		i32res = int32(i) / 7
    		boolres = int32(i)%7 == 0
    	}
    }
    
    var u32res uint32
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 29 00:07:35 UTC 2020
    - 7.7K bytes
    - Viewed (0)
  5. platforms/jvm/plugins-java-library/src/integTest/groovy/org/gradle/java/JavaLibraryCompilationIntegrationTest.groovy

                        testImplementation project(':b')
                    }
                """)
                src {
                    test {
                        java {
                            'ToolTest.java'('public class ToolTest { public void test(Tool tool) {} }')
                        }
                    }
                }
            }
    
            subproject('b') {
                'build.gradle'('''
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 18 13:02:41 UTC 2024
    - 14K bytes
    - Viewed (0)
  6. internal/s3select/sql/funceval.go

    	case castString:
    		s, err := stringCast(v)
    		return FromString(s), err
    
    	case castTimestamp:
    		t, err := timestampCast(v)
    		return FromTimestamp(t), err
    
    	case castBool:
    		b, err := boolCast(v)
    		return FromBool(b), err
    
    	case castDecimal, castNumeric:
    		fallthrough
    
    	default:
    		return nil, errUnimplementedCast
    	}
    }
    
    func intCast(v *Value) (int64, error) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 13.2K bytes
    - Viewed (0)
  7. tensorflow/c/kernels_test.cc

        TF_DeleteStatus(status);
        return static_cast<void*>(s);
      };
    
      AttrValue v;
      v.set_b(true);
      CreateAndCallKernelWithAttr(my_create_func, "TestKernelAttrBool", v);
    }
    
    TEST_F(TestKernelAttr, BoolList) {
      auto my_create_func = [](TF_OpKernelConstruction* ctx) {
        struct MyCustomKernel* s = new struct MyCustomKernel;
        s->created = true;
        s->compute_called = false;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 50.4K bytes
    - Viewed (0)
  8. tensorflow/c/c_api_test.cc

      unsigned char value;
      TF_OperationGetAttrBool(oper, "v", &value, s_);
      EXPECT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      EXPECT_EQ(1, value);
    }
    
    TEST_F(CApiAttributesTest, BoolList) {
      const unsigned char list[] = {0, 1, 1, 0, 0, 1, 1};
      const size_t list_size = TF_ARRAYSIZE(list);
    
      auto desc = init("list(bool)");
      TF_SetAttrBoolList(desc, "v", list, list_size);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
Back to top