Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for boolTest (0.29 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
Back to top