From 749312ebbf3aaa0ee21904b9d7fd59aed85a70a7 Mon Sep 17 00:00:00 2001 From: Namdak Tonpa Date: Sat, 17 Nov 2018 04:34:42 +0200 Subject: [PATCH] OTP 17 compliance --- src/kvs_stream.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kvs_stream.erl b/src/kvs_stream.erl index 10781bd..90e1711 100644 --- a/src/kvs_stream.erl +++ b/src/kvs_stream.erl @@ -5,7 +5,7 @@ -license('ISC'). -include_lib("kvs/include/kvs.hrl"). -compile(export_all). --include_lib("stdlib/include/assert.hrl"). +%-include_lib("stdlib/include/assert.hrl"). % section: kvs_stream prelude @@ -116,5 +116,5 @@ test1() -> Top = kvs_stream:top(kvs_stream:load_reader(R2)), #reader{args=F} = kvs_stream:take(Bot#reader{args=20,dir=0}), #reader{args=B} = kvs_stream:take(Top#reader{args=20,dir=1}), - ?assertMatch(X,length(F)), - ?assertMatch(F,lists:reverse(B)). + true = (X == length(F)), + true = (F == lists:reverse(B)).