mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
SCRIPT namespace replacements
This commit is contained in:
committed by
Peter Johnson
parent
ae6c043632
commit
9aca8e0fd6
@@ -13,16 +13,16 @@
|
||||
#include "wpi/util/raw_ostream.hpp"
|
||||
|
||||
TEST(ScopedTracerTest, Timing) {
|
||||
wpi::SmallString<128> buf;
|
||||
wpi::raw_svector_ostream os(buf);
|
||||
wpi::util::SmallString<128> buf;
|
||||
wpi::util::raw_svector_ostream os(buf);
|
||||
|
||||
frc::sim::PauseTiming();
|
||||
wpi::sim::PauseTiming();
|
||||
{
|
||||
frc::ScopedTracer tracer("timing_test", os);
|
||||
frc::sim::StepTiming(1.5_s);
|
||||
wpi::ScopedTracer tracer("timing_test", os);
|
||||
wpi::sim::StepTiming(1.5_s);
|
||||
}
|
||||
frc::sim::ResumeTiming();
|
||||
wpi::sim::ResumeTiming();
|
||||
|
||||
std::string_view out = os.str();
|
||||
EXPECT_TRUE(wpi::starts_with(out, "\ttiming_test: 1.5"));
|
||||
EXPECT_TRUE(wpi::util::starts_with(out, "\ttiming_test: 1.5"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user