text: // Copyright (C) 2022 Igalia, S.L. All rights reserved.
  // This code is governed by the BSD license found in the LICENSE file.
  
  /*---
  esid: sec-temporal.plaintime.prototype.tostring
  description: floor value for roundingMode option
  features: [Temporal]
  ---*/
  
  const time = new Temporal.PlainTime(12, 34, 56, 123, 987, 500);
  
  const result1 = time.toString({ smallestUnit: "microsecond", roundingMode: "floor" });
  assert.sameValue(result1, "12:34:56.123987", "roundingMode is floor");
  
  const result2 = time.toString({ smallestUnit: "millisecond", roundingMode: "floor" });
  assert.sameValue(result2, "12:34:56.123", "roundingMode is floor");
  
  const result3 = time.toString({ smallestUnit: "second", roundingMode: "floor" });
  assert.sameValue(result3, "12:34:56", "roundingMode is floor");
  