From bbc83bd5938d01e19c81b821633e1ee2f918f231 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=BE=D1=80=D0=BE=D0=B7=D0=BE=D0=B2=20=D0=90=D0=BD?= =?UTF-8?q?=D0=B4=D1=80=D0=B5=D0=B9?= Date: Fri, 18 Mar 2022 12:03:50 +0000 Subject: [PATCH] adapter --- adapter.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/adapter.dart b/adapter.dart index 3c5cb01..aaa1371 100644 --- a/adapter.dart +++ b/adapter.dart @@ -1,8 +1,8 @@ -const adapteeMessage = 'Adaptee#method was called'; +const adapteeMessage = 'Вызов адаптирующегося метода'; class Adaptee { String method() { - print('Adaptee#method is being called'); + print('Вызов адаптирующегося метода'); return adapteeMessage; } @@ -15,7 +15,7 @@ abstract class Target { class Adapter implements Target { String call() { var adaptee = Adaptee(); - print('Adapter#call is being called'); + print('Вызов адаптирующегося метода'); return adaptee.method(); } @@ -25,5 +25,5 @@ void main() { var adapter = Adapter(); var result = adapter.call(); - assert(result == adapteeMessage); + print(result == adapteeMessage); }