src/net/third_party/quiche/src/quic/core/quic_versions_test.cc
// This test may appear to be so simplistic as to be unnecessary,
// yet a typo was made in doing the #defines and it was caught
// only in some test far removed from here... Better safe than sorry.
This test may appear to be so simplistic as to be unnecessary,
yet a typo was made in doing the #defines and it was caught
only in some test far removed from here... Better safe than sorry.
This test may appear to be so simplistic as to be unnecessary yet a typo was made in doing the #defines and it was caught only in some test far removed from here ... Better safe than sorry .
TEST_F(QuicVersionsTest, CheckTransportVersionNumbersForTypos) {
  static_assert(SupportedTransportVersions().size() == 7u,
                "Supported versions out of sync");
  EXPECT_EQ(QUIC_VERSION_43, 43);
  EXPECT_EQ(QUIC_VERSION_46, 46);
  EXPECT_EQ(QUIC_VERSION_48, 48);
  EXPECT_EQ(QUIC_VERSION_49, 49);
  EXPECT_EQ(QUIC_VERSION_50, 50);
  EXPECT_EQ(QUIC_VERSION_IETF_DRAFT_25, 70);
  EXPECT_EQ(QUIC_VERSION_IETF_DRAFT_27, 71);
}
TEST_F ( QuicVersionsTest , CheckTransportVersionNumbersForTypos ) { static_assert ( SupportedTransportVersions ( ) . size ( ) == 7u , " " ) ; EXPECT_EQ ( QUIC_VERSION_43 , 43 ) ; EXPECT_EQ ( QUIC_VERSION_46 , 46 ) ; EXPECT_EQ ( QUIC_VERSION_48 , 48 ) ; EXPECT_EQ ( QUIC_VERSION_49 , 49 ) ; EXPECT_EQ ( QUIC_VERSION_50 , 50 ) ; EXPECT_EQ ( QUIC_VERSION_IETF_DRAFT_25 , 70 ) ; EXPECT_EQ ( QUIC_VERSION_IETF_DRAFT_27 , 71 ) ; }
This test may appear to be so simplistic as to be unnecessary,
yet a typo was made in doing the #defines and it was caught
only in some test far removed from here...
This test may appear to be so simplistic as to be unnecessary yet a typo was made in doing the #defines and it was caught only in some test far removed from here ...