Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,463 for expectEq (0.13 sec)

  1. src/mime/multipart/multipart_test.go

    	}
    }
    
    func escapeString(v string) string {
    	bytes, _ := json.Marshal(v)
    	return string(bytes)
    }
    
    func expectEq(t *testing.T, expected, actual, what string) {
    	if expected == actual {
    		return
    	}
    	t.Errorf("Unexpected value for %s; got %s (len %d) but expected: %s (len %d)",
    		what, escapeString(actual), len(actual), escapeString(expected), len(expected))
    }
    
    func TestNameAccessors(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 17:36:47 UTC 2022
    - 30.4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/testdata/fp_test.go

    	expect64(t, s+":c", c, expected)
    	expect64(t, s+":d", d, expected)
    	expect64(t, s+":e", e, expected)
    	expect64(t, s+":f", f, expected)
    	expect64(t, s+":g", g, expected)
    }
    
    func expectAll32(t *testing.T, s string, expected, a, b, c, d, e, f, g, h, i float32) {
    	expect32(t, s+":a", a, expected)
    	expect32(t, s+":b", b, expected)
    	expect32(t, s+":c", c, expected)
    	expect32(t, s+":d", d, expected)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 35K bytes
    - Viewed (0)
  3. pkg/kubelet/kubeletconfig/util/files/files_test.go

    	if c.fn != nil {
    		errs := c.fn(fs, dir, c)
    		if len(errs) > 0 {
    			for _, err := range errs {
    				utiltest.ExpectError(t, err, c.err)
    			}
    			// skip checking expected files if we expected errors
    			// (usually means we didn't create file)
    			return
    		}
    		c.expect(t, fs, dir)
    		return
    	}
    	// just check expected files, and compare errors from c.expect to c.err
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 07 11:36:13 UTC 2022
    - 11.7K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/BlockingHttpServer.java

        }
    
        /**
         * Expects exactly the given number of calls to be made concurrently from any combination of the expected calls. Blocks each call until they are explicitly released.
         * Is not considered "complete" until all expected calls have been received.
         */
        public BlockingHandler expectConcurrentAndBlock(int concurrent, String... expectedCalls) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/HttpServer.groovy

        }
    
        /**
         * Expects one GET request, which fails with a 500 status code
         */
        void expectGetBroken(String path) {
            expect(path, false, ['GET'], broken())
        }
    
        /**
         *  Expects one GET request, which fails with a 401 status code.
         */
        void expectGetUnauthorized(String path) {
            expect(path, false, ['GET'], unauthorized())
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl/src/test/resources/org/gradle/kotlin/dsl/accessors/tasks/PrintAccessors-expected-output.txt

    Paul Merlin <******@****.***> 1690890212 +0200
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 15.1K bytes
    - Viewed (0)
  7. tensorflow/c/while_loop_test.cc

        outputs_.resize(ninputs, {nullptr, -1});
      }
    
      void ExpectOK() {
        TF_FinishWhile(params_.get(), s_, &outputs_[0]);
        EXPECT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      }
    
      void ExpectError(TF_Code expected_code, const string& expected_msg) {
        TF_FinishWhile(params_.get(), s_, &outputs_[0]);
        EXPECT_EQ(expected_code, TF_GetCode(s_));
        EXPECT_EQ(expected_msg, TF_Message(s_));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 11 06:05:56 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/aot/codegen_test.cc

      }
    };
    
    TEST_F(ParseCppClassTest, ParseOK) {
      ExpectOK("MyClass", "MyClass", {});
      ExpectOK("_MyClass", "_MyClass", {});
      ExpectOK("a::MyClass", "MyClass", {"a"});
      ExpectOK("a::foo::MyClass", "MyClass", {"a", "foo"});
      ExpectOK("a::foo::b::MyClass", "MyClass", {"a", "foo", "b"});
      ExpectOK("a::foo::b::bar::MyClass", "MyClass", {"a", "foo", "b", "bar"});
      ExpectOK("foo::MyClass", "MyClass", {"foo"});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 01 02:13:40 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/tf_executor_ops_invalid.mlir

      tf_executor.graph {
        "tf_executor.island"() ({
    // expected-error@-1 {{'tf_executor.island' op expected 1 or more results}}
        }) : () -> ()
      }
      func.return
    }
    
    // -----
    
    // Check that an island region can't be empty.
    func.func @invalid_island(%arg0: tensor<*xf32>, %ctl: !tf_executor.control) {
      tf_executor.graph {
        "tf_executor.island"() ({
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 19 01:12:10 UTC 2023
    - 28.2K bytes
    - Viewed (0)
  10. tests/sql_builder_test.go

    	expected = updatedAtRe.ReplaceAllString(expected, `"updated_at"=?`)
    
    	// ignore RETURNING "id" (only in PostgreSQL)
    	returningRe := regexp.MustCompile(`(?i)RETURNING "id"`)
    	actually = returningRe.ReplaceAllString(actually, ``)
    	expected = returningRe.ReplaceAllString(expected, ``)
    
    	actually = strings.TrimSpace(actually)
    	expected = strings.TrimSpace(expected)
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Jan 12 08:42:21 UTC 2024
    - 16.7K bytes
    - Viewed (0)
Back to top