SpannedSubject.RubyText


interface SpannedSubject.RubyText


Allows assertions about a span's ruby text and its position.

Summary

Public functions

SpannedSubject.AndSpanFlags!

Checks that at least one of the matched spans has the expected text.

Public functions

withTextAndPosition

fun withTextAndPosition(text: String!, @TextAnnotation.Position position: Int): SpannedSubject.AndSpanFlags!

Checks that at least one of the matched spans has the expected text.

Parameters
text: String!

The expected text.

@TextAnnotation.Position position: Int

The expected position of the text.

Returns
SpannedSubject.AndSpanFlags!

A WithSpanFlags object for optional additional assertions on the flags.