Home
last modified time | relevance | path

Searched refs:QR (Results 1 – 1 of 1) sorted by relevance

/system/libbase/
Dexpected_test.cpp554 struct QR { in TEST() struct
557 QR(int q, int r) noexcept : quotient(q), remainder(r) {} in TEST() function
558 bool operator==(const QR& rhs) const { in TEST() argument
561 bool operator!=(const QR& rhs) const { in TEST() argument
566 auto divide = [](int x, int y) -> expected<QR,E> { in TEST()
570 return QR(x / y, x % y); in TEST()
579 EXPECT_EQ(QR(3, 1), *divide(10, 3)); in TEST()