bither-iosTests/BlockUtilTest.m
//
//  BlockUtilTest.m
//  bither-ios
//
//  Copyright 2014 http://Bither.net
//
//  Licensed under the Apache License, Version 2.0 (the "License");
//  you may not use this file except in compliance with the License.
//  You may obtain a copy of the License at
//
//    http://www.apache.org/licenses/LICENSE-2.0
//
//  Unless required by applicable law or agreed to in writing, software
//  distributed under the License is distributed on an "AS IS" BASIS,
//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//  See the License for the specific language governing permissions and
//  limitations under the License.

#import <XCTest/XCTest.h>

#import "BlockUtil.h"



@interface BlockUtilTest : XCTestCase

@end

@implementation BlockUtilTest

- (void)setUp
{
    [super setUp];
    // Put setup code here. This method is called before the invocation of each test method in the class.
}

- (void)tearDown
{
    // Put teardown code here. This method is called after the invocation of each test method in the class.
    [super tearDown];
}

- (void)testExample
{
//    NSString *json =@"{\"nonce\": 3837102513, \"prev_block\": \"00000000000000000401800189014bad6a3ca1af029e19b362d6ef3c5425a8dc\", \"ver\": 2, \"block_no\": 304416, \"mrkl_root\": \"4785b428de83e1462c5e57556a44849344a1341f70220f1720b51d483d748701\", \"time\": 1402004993, \"bits\": 408782234}";
//    NSDictionary *dict =[json objectFromJSONString];
//    BTBlock *block =[BlockUtil formatBlcok:dict];
//    NSString * blockHash=[NSString hexWithData:block.blockHash];
//    NSLog(@"hash : %s",[blockHash UTF8String]);
//    XCTAssertTrue([@"00000000000000000ead30f2a70f979a6b07f841ca05302497a92b3c9a9488a3" isEqualToString:blockHash], @" fromat block is success");
//    
    
   // XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__);
}

@end
