Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for writesTextAndEndOfLineWithTemporaryStyleChange (0.93 sec)

  1. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/text/AbstractStyledTextOutputTest.groovy

            when:
            output.style(Style.Info).withStyle(Style.Error).text('some text')
    
            then:
            output.value == '{info}{error}some text{info}'
        }
    
        def writesTextAndEndOfLineWithTemporaryStyleChange() {
            when:
            output.style(Style.Info).withStyle(Style.Error).println('some text')
    
            then:
            output.value == '{info}{error}some text{info}\n'
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top