1
0
зеркало из https://github.com/glebtv/tui-textarea.git synced 2026-08-28 11:36:17 +03:00
Этот коммит содержится в:
rhysd
2024-12-01 14:04:10 +09:00
родитель 7f2722256d
Коммит ad518def02
4 изменённых файлов: 21 добавлений и 29 удалений

Просмотреть файл

@@ -110,10 +110,8 @@ fn back() {
#[test]
fn up() {
for text in [
["abc", "def", "ghi"],
["あいう", "🐶🐱🐰", "👪🤟🏿👩🏻‍❤️‍💋‍👨🏾"],
] {
for text in [["abc", "def", "ghi"], ["あいう", "🐶🐱🐰", "👪🤟🏿👩🏻‍❤️‍💋‍👨🏾"]]
{
let mut t = TextArea::from(text);
for col in 0..=3 {
@@ -146,10 +144,8 @@ fn up_trim() {
#[test]
fn down() {
for text in [
["abc", "def", "ghi"],
["あいう", "🐶🐱🐰", "👪🤟🏿👩🏻‍❤️‍💋‍👨🏾"],
] {
for text in [["abc", "def", "ghi"], ["あいう", "🐶🐱🐰", "👪🤟🏿👩🏻‍❤️‍💋‍👨🏾"]]
{
let mut t = TextArea::from(text);
for col in 0..=3 {
@@ -217,10 +213,8 @@ fn end() {
#[test]
fn top() {
for text in [
["abc", "def", "ghi"],
["あいう", "🐶🐱🐰", "👪🤟🏿👩🏻‍❤️‍💋‍👨🏾"],
] {
for text in [["abc", "def", "ghi"], ["あいう", "🐶🐱🐰", "👪🤟🏿👩🏻‍❤️‍💋‍👨🏾"]]
{
let mut t = TextArea::from(text);
for row in 0..=2 {
for col in 0..=3 {
@@ -250,10 +244,8 @@ fn top_trim() {
#[test]
fn bottom() {
for text in [
["abc", "def", "ghi"],
["あいう", "🐶🐱🐰", "👪🤟🏿👩🏻‍❤️‍💋‍👨🏾"],
] {
for text in [["abc", "def", "ghi"], ["あいう", "🐶🐱🐰", "👪🤟🏿👩🏻‍❤️‍💋‍👨🏾"]]
{
let mut t = TextArea::from(text);
for row in 0..=2 {
for col in 0..=3 {