Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 72 for expects (0.2 sec)

  1. tests/migrate_test.go

    	}
    
    	if tableType.Schema() != tblSchema {
    		t.Fatalf("expected tblSchema to be %s but got %s", tblSchema, tableType.Schema())
    	}
    
    	if tableType.Name() != tblName {
    		t.Fatalf("expected table name to be %s but got %s", tblName, tableType.Name())
    	}
    
    	if tableType.Type() != tblType {
    		t.Fatalf("expected table type to be %s but got %s", tblType, tableType.Type())
    	}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  2. tests/query_test.go

    		totalBatch += batch
    
    		if tx.RowsAffected != 2 {
    			t.Errorf("Incorrect affected rows, expects: 2, got %v", tx.RowsAffected)
    		}
    
    		if len(results) != 2 {
    			t.Errorf("Incorrect users length, expects: 2, got %v", len(results))
    		}
    
    		for idx := range results {
    			results[idx].Name = results[idx].Name + "_new"
    		}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
  3. cmd/sts-handlers_test.go

    			},
    		},
    	}
    
    	entRes.Timestamp = time.Time{}
    	if !reflect.DeepEqual(expected, entRes) {
    		c.Fatalf("policy entities mismatch: expected: %v, got: %v", expected, entRes)
    	}
    
    	dn := "uid=svc.algorithm,ou=swengg,dc=min,dc=io"
    	res, err := s.adm.ListAccessKeysLDAP(ctx, dn, "")
    	if err != nil {
    		c.Fatalf("Unable to list access keys: %v", err)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

     * {@link ClosingFuture} pipeline.
     */
    public abstract class AbstractClosingFutureTest extends TestCase {
      // TODO(dpb): Use Expect once that supports JUnit 3, or we can use JUnit 4.
      final List<AssertionError> failures = new ArrayList<>();
      final StandardSubjectBuilder expect =
          StandardSubjectBuilder.forCustomFailureStrategy(
              new FailureStrategy() {
                @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 74.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

     * {@link ClosingFuture} pipeline.
     */
    public abstract class AbstractClosingFutureTest extends TestCase {
      // TODO(dpb): Use Expect once that supports JUnit 3, or we can use JUnit 4.
      final List<AssertionError> failures = new ArrayList<>();
      final StandardSubjectBuilder expect =
          StandardSubjectBuilder.forCustomFailureStrategy(
              new FailureStrategy() {
                @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  6. src/cmd/cgo/gcc.go

    	sb.WriteString("func() ")
    	if call.Deferred {
    		sb.WriteString("func() ")
    	}
    
    	needsUnsafe := false
    	result := false
    	twoResults := false
    	if !call.Deferred {
    		// Check whether this call expects two results.
    		for _, ref := range f.Ref {
    			if ref.Expr != &call.Call.Fun {
    				continue
    			}
    			if ref.Context == ctxCall2 {
    				sb.WriteString("(")
    				result = true
    				twoResults = true
    			}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  7. tensorflow/c/c_api_test.cc

                                  &Deallocator, &deallocator_called);
      EXPECT_FALSE(deallocator_called);
      EXPECT_EQ(TF_FLOAT, TF_TensorType(t));
      EXPECT_EQ(2, TF_NumDims(t));
      EXPECT_EQ(dims[0], TF_Dim(t, 0));
      EXPECT_EQ(dims[1], TF_Dim(t, 1));
      EXPECT_EQ(num_bytes, TF_TensorByteSize(t));
      EXPECT_EQ(static_cast<void*>(values), TF_TensorData(t));
      TF_DeleteTensor(t);
      EXPECT_TRUE(deallocator_called);
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  8. tensorflow/c/c_api_function_test.cc

          ASSERT_TRUE(out != nullptr);
          EXPECT_EQ(TF_INT32, TF_TensorType(out));
          EXPECT_EQ(0, TF_NumDims(out));  // scalar
          ASSERT_EQ(sizeof(int32_t), TF_TensorByteSize(out));
          int32_t* output_contents = static_cast<int32_t*>(TF_TensorData(out));
          EXPECT_EQ(expected_results[i], *output_contents);
        }
      }
    
      void CompareInt32Tensor(const std::vector<int32_t>& expected, TF_Tensor* t) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
  9. src/bytes/bytes_test.go

    	m := Map(maxRune, []byte(a))
    	expect := tenRunes(unicode.MaxRune)
    	if string(m) != expect {
    		t.Errorf("growing: expected %q got %q", expect, m)
    	}
    
    	// 2. Shrink
    	minRune := func(r rune) rune { return 'a' }
    	m = Map(minRune, []byte(tenRunes(unicode.MaxRune)))
    	expect = a
    	if string(m) != expect {
    		t.Errorf("shrinking: expected %q got %q", expect, m)
    	}
    
    	// 3. Rot13
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

      if (GetParam().empty()) {
        EXPECT_EQ(fs->TranslateName(""), "");
        EXPECT_EQ(fs->TranslateName("/"), "/");
        EXPECT_EQ(fs->TranslateName("//"), "/");
        // Empty scheme also allows relative paths
        EXPECT_EQ(fs->TranslateName("a_file"), "a_file");
        EXPECT_EQ(fs->TranslateName("a_dir/.."), ".");
      } else {
        EXPECT_EQ(fs->TranslateName(tensorflow::strings::StrCat(GetParam(), "://")),
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
Back to top