Giter Club home page Giter Club logo

blance's Issues

unit test TestPlanNextMapVis failure on increase partition weight

Hari K found a blance go test failure...

--- FAIL: TestPlanNextMapVis (0.01s)
plan_test.go:1631: i: 16, planNextMapVis, c: {"Ignore":false,"About":"8 partitions, 4 nodes, increase partition 004 weight","FromTo":[["sm "," m s"],[" ms"," s m"],["s m"," sm"],[" ms "," m s"],[" sm ","s m "],[" s m"," s m"],["ms ","ms "],["m s ","m s "]],"FromToPriority":false,"Nodes":["a","b","c","d"],"NodesToRemove":[],"NodesToAdd":[],"Model":{"master":{"priority":0,"constraints":1},"slave":{"priority":1,"constraints":1}},"ModelStateConstraints":null,"PartitionWeights":{"004":100},"StateStickiness":null,"NodeWeights":null,"NodeHierarchy":null,"HierarchyRules":null},
INPUT jp: {"000":{"name":"000","nodesByState":{"master":["b"],"slave":["a"]}},"001":{"name":"001","nodesByState":{"master":["c"],"slave":["d"]}},"002":{"name":"002","nodesByState":{"master":["d"],"slave":["a"]}},"003":{"name":"003","nodesByState":{"master":["b"],"slave":["c"]}},"004":{"name":"004","nodesByState":{"master":["c"],"slave":["b"]}},"005":{"name":"005","nodesByState":{"master":["d"],"slave":["b"]}},"006":{"name":"006","nodesByState":{"master":["a"],"slave":["b"]}},"007":{"name":"007","nodesByState":{"master":["a"],"slave":["c"]}}},
RESULT r: {"000":{"name":"000","nodesByState":{"master":["b"],"slave":["a"]}},"001":{"name":"001","nodesByState":{"master":["d"],"slave":["a"]}},"002":{"name":"002","nodesByState":{"master":["d"],"slave":["a"]}},"003":{"name":"003","nodesByState":{"master":["b"],"slave":["c"]}},"004":{"name":"004","nodesByState":{"master":["c"],"slave":["d"]}},"005":{"name":"005","nodesByState":{"master":["d"],"slave":["b"]}},"006":{"name":"006","nodesByState":{"master":["a"],"slave":["b"]}},"007":{"name":"007","nodesByState":{"master":["a"],"slave":["c"]}}},
EXPECTED: {"000":{"name":"000","nodesByState":{"master":["b"],"slave":["d"]}},"001":{"name":"001","nodesByState":{"master":["d"],"slave":["b"]}},"002":{"name":"002","nodesByState":{"master":["d"],"slave":["c"]}},"003":{"name":"003","nodesByState":{"master":["b"],"slave":["d"]}},"004":{"name":"004","nodesByState":{"master":["c"],"slave":["a"]}},"005":{"name":"005","nodesByState":{"master":["d"],"slave":["b"]}},"006":{"name":"006","nodesByState":{"master":["a"],"slave":["b"]}},"007":{"name":"007","nodesByState":{"master":["a"],"slave":["c"]}}}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.