Javier
02/08/2024, 7:26 PMEmil Kantis
02/08/2024, 8:00 PMJavier
02/08/2024, 8:02 PMMervyn McCreight
02/09/2024, 1:15 AMKirill Zhukov
05/30/2024, 2:00 AMOliver.O
05/30/2024, 8:32 AMCLOVIS
05/30/2024, 8:33 AMsi=
parameter from YouTube URLs, it's used by YT to track who you share your links with and thus track which other people you know)CLOVIS
05/30/2024, 8:34 AMCLOVIS
05/30/2024, 8:37 AMfun <T> T.shouldBe(value: T, message: () -> String) {
withClue(message) {
this@shouldBe shouldBe value
}
}
then, users need to add shouldBe
to the list of instrumented functions, and in theory, that's all that's necessary, and all existing code calling the existing shouldBe
should be intrusmented.
However, I don't have the time to actually try it and see what happens.Javier
05/30/2024, 8:39 AMwithClue
? It is not mentioned in the docsCLOVIS
05/30/2024, 8:39 AMOliver.O
05/30/2024, 8:40 AMJavier
05/30/2024, 8:41 AMCLOVIS
05/30/2024, 8:41 AMshouldNotBe
as wellEmil Kantis
05/30/2024, 8:42 AMEmil Kantis
05/30/2024, 8:42 AMCLOVIS
05/30/2024, 8:42 AMCLOVIS
05/30/2024, 8:43 AMshouldBe
)Oliver.O
05/30/2024, 8:44 AMJavier
05/30/2024, 8:45 AMJavier
05/30/2024, 8:45 AMCLOVIS
05/30/2024, 8:46 AMfoo shouldContain "2"
they already get nice error messages thanks to Kotest matchers, so there is little benefit to using power-assert.
However, users who write
("2" in foo) shouldBe true
would benefit from power-assert.
So I think only shouldBe
/`shouldNotBe` are necessary.Oliver.O
05/30/2024, 8:47 AMfoo.bar[4].baz shouldContain "2"
?CLOVIS
05/30/2024, 8:48 AMCLOVIS
05/30/2024, 8:49 AMcheck("2" in foo.bar[4].baz)
and get the same error message, without any new code in Kotest, so…Oliver.O
05/30/2024, 8:51 AMKirill Zhukov
05/30/2024, 5:18 PMsi=
parameter from YouTube URLs, it's used by YT to track who you share your links with and thus track which other people you know)
@CLOVIS, I wonder if there's a browser extension you could use to help clean up clicked urls? I can it'd be more effectively to automatically clean up urls on your end vs other people having to do so manually. If there's an extension like this, I would love to use it!CLOVIS
05/31/2024, 7:31 AMsam
06/02/2024, 10:45 PM