Skip to content

Instantly share code, notes, and snippets.

View bpolania's full-sized avatar

Boris Polania bpolania

View GitHub Profile
@bpolania
bpolania / DataExtensions.swift
Last active January 25, 2024 07:10
Swift Extensions for Data, Int, UInt8, UInt16, and UInt32 types
// MIT License
// Copyright (c) 2018 Boris Polania
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
var HelloEthSalon = artifacts.require('./HelloEthSalon.sol');
contract(‘HelloEthSalon:GetMessage’, function(accounts) {
it(“should return a correct string”, function(done) {
var hello_eth_salon = HelloEthSalon.deployed();
hello_eth_salon.then(function(contract){
return contract.GetMessage.call(); // **IMPORTANT
}).then(function(result){
assert.isTrue(result === ‘Hello Ethereum Salon!’);
done();
})