From 353190fdcd7a695205072670eb402f43f6e42f43 Mon Sep 17 00:00:00 2001 From: Ladd Hoffman Date: Tue, 14 Mar 2023 21:05:30 -0500 Subject: [PATCH] Update simple power redistribution example Making the receiving post start with zero value, for a simpler comparison with example 9 --- forum-network/src/tests/scripts/forum/forum3.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/forum-network/src/tests/scripts/forum/forum3.test.js b/forum-network/src/tests/scripts/forum/forum3.test.js index ce849ed..f8d65ce 100644 --- a/forum-network/src/tests/scripts/forum/forum3.test.js +++ b/forum-network/src/tests/scripts/forum/forum3.test.js @@ -19,9 +19,9 @@ describe('Forum', function tests() { it('Post2', async () => { const { forum, experts, posts } = forumTest; - await forumTest.addPost(experts[0], 10); + await forumTest.addPost(experts[0], 0); forum.getPost(posts[0]).value.should.equal(10); - forum.getPost(posts[1]).value.should.equal(10); + forum.getPost(posts[1]).value.should.equal(0); }); it('Post3 cites Post2 and negatively cites Post1', async () => { @@ -31,7 +31,7 @@ describe('Forum', function tests() { { postId: posts[1], weight: 1 }, ]); forum.getPost(posts[0]).value.should.equal(0); - forum.getPost(posts[1]).value.should.equal(30); + forum.getPost(posts[1]).value.should.equal(20); forum.getPost(posts[2]).value.should.equal(0); }); });