зеркало из
https://github.com/glebtv/tui-textarea.git
synced 2026-08-28 11:36:17 +03:00
prefer eliding lifetimes
Этот коммит содержится в:
@@ -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 {
|
||||
|
||||
Ссылка в новой задаче
Block a user