Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 165 for 22nd (0.09 sec)

  1. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/util/NumberUtil.java

                return result.toPlainString() + UNITS.get(baseExponent);
            }
        }
    
        /**
         * gets ordinal String representation of given value (e.g. 1 -> 1st, 12 -> 12th, 22 -> 22nd, etc.)
         */
        public static String ordinal(int value) {
            switch (value % 100) {
                case 11:
                case 12:
                case 13:
                    return value + ORDINAL_SUFFIXES.get(0);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/util/NumberUtilTest.groovy

            input | ordinal
            0     | "0th"
            1     | "1st"
            2     | "2nd"
            3     | "3rd"
            4     | "4th"
            10    | "10th"
            11    | "11th"
            12    | "12th"
            13    | "13th"
            14    | "14th"
            20    | "20th"
            21    | "21st"
            22    | "22nd"
            23    | "23rd"
            24    | "24th"
            100   | "100th"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  3. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/junit/result/JUnitXmlResultWriterSpec.groovy

            result.add(new TestMethodResult(4, "some skipped test", SKIPPED, 10, startTime + 45))
    
            provider.writeAllOutput(1, StdOut, _) >> { args -> args[2].write("1st output message\n2nd output message\n") }
            provider.writeAllOutput(1, StdErr, _) >> { args -> args[2].write("err") }
    
            when:
            def xml = getXml(result, options)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 18:51:05 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  4. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/text/LinePrefixingStyledTextOutputTest.groovy

            when:
            output.println("1st line")
            output.text("2nd line")
            output.text(" - still 2nd line")
            output.println()
            output.text("3rd line")
    
            then:
            result.toString() == TextUtil.toPlatformLineSeparators("""[PREFIX]1st line
    [PREFIX]2nd line - still 2nd line
    [PREFIX]3rd line""")
        }
    
        def "allows not prefixing first line"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  5. internal/s3select/json/testdata/2.json

    {"text": "hello world\\n2nd line"}...
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 35 bytes
    - Viewed (0)
  6. src/net/http/cookiejar/example_test.go

    	}
    
    	if _, err = client.Get(u.String()); err != nil {
    		log.Fatal(err)
    	}
    
    	fmt.Println("After 2nd request:")
    	for _, cookie := range jar.Cookies(u) {
    		fmt.Printf("  %s: %s\n", cookie.Name, cookie.Value)
    	}
    	// Output:
    	// After 1st request:
    	//   Flavor: Chocolate Chip
    	// After 2nd request:
    	//   Flavor: Oatmeal Raisin
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 03:47:00 UTC 2016
    - 1.5K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/problems/ConfigurationCacheProblemsSummaryTest.kt

            assertTrue(
                "1st problem",
                subject.onProblem(buildLogicProblem("build.gradle", "failure"), ProblemSeverity.Failure)
            )
            assertTrue(
                "2nd problem (same message as 1st but different location)",
                subject.onProblem(buildLogicProblem("build.gradle.kts", "failure"), ProblemSeverity.Failure)
            )
            assertFalse(
                "overflow",
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. internal/lsync/lrwmutex_test.go

    		// fmt.Println("Initial write lock released, waiting...")
    	}()
    
    	// fmt.Println("Trying to acquire 2nd write lock, waiting...")
    	locked = lrwm.GetLock(ctx, "", "", duration)
    	if locked {
    		// fmt.Println("2nd write lock acquired, waiting...")
    		time.Sleep(time.Second)
    
    		lrwm.Unlock()
    	} else {
    		t.Log("2nd write lock failed due to timeout")
    	}
    	return
    }
    
    func TestDualWriteLockAcquired(t *testing.T) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Mar 05 04:57:35 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  9. internal/dsync/drwmutex_test.go

    		panic("Failed to acquire read lock")
    	}
    	// fmt.Println("2nd read lock acquired, waiting...")
    
    	go func() {
    		time.Sleep(2 * testDrwMutexAcquireTimeout)
    		drwm1.RUnlock(context.Background())
    		// fmt.Println("1st read lock released, waiting...")
    	}()
    
    	go func() {
    		time.Sleep(3 * testDrwMutexAcquireTimeout)
    		drwm2.RUnlock(context.Background())
    		// fmt.Println("2nd read lock released, waiting...")
    	}()
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 24 03:49:07 UTC 2022
    - 9.7K bytes
    - Viewed (0)
  10. test/fixedbugs/issue27267.go

    package p
    
    // 1st test case from issue
    type F = func(E) // compiles if not type alias or moved below E struct
    type E struct {
    	f F
    }
    
    var x = E{func(E) {}}
    
    // 2nd test case from issue
    type P = *S
    type S struct {
    	p P
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 05 20:30:19 UTC 2018
    - 392 bytes
    - Viewed (0)
Back to top